Skip to content

Commit

Permalink
🛠Fix下拉通知栏转屏的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
renzifeng committed Mar 13, 2020
1 parent d460e1d commit 8c42b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZFPlayer/Classes/Core/ZFPlayerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ - (ZFPlayerNotification *)notification {
if (self.pauseWhenAppResignActive && self.currentPlayerManager.isPlaying) {
self.pauseByEvent = YES;
}
if (self.isFullScreen && !self.isLockedScreen) self.orientationObserver.lockedScreen = YES;
self.orientationObserver.lockedScreen = YES;
[[UIApplication sharedApplication].keyWindow endEditing:YES];
if (!self.pauseWhenAppResignActive) {
[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
Expand All @@ -255,7 +255,7 @@ - (ZFPlayerNotification *)notification {
@strongify(self)
if (self.isViewControllerDisappear) return;
if (self.isPauseByEvent) self.pauseByEvent = NO;
if (self.isFullScreen && !self.isLockedScreen) self.orientationObserver.lockedScreen = NO;
self.orientationObserver.lockedScreen = NO;
};
_notification.oldDeviceUnavailable = ^(ZFPlayerNotification * _Nonnull registrar) {
@strongify(self)
Expand Down

0 comments on commit 8c42b84

Please sign in to comment.