Remove "Rotate to portrait when exiting fullscreen" setting

Now it is automatically decided depending on device type
This commit is contained in:
Arkadiusz Fal
2023-05-23 17:29:10 +02:00
parent 0dee8310ce
commit e1f03bc025
5 changed files with 3 additions and 11 deletions

View File

@@ -127,7 +127,6 @@ final class PlayerModel: ObservableObject {
#if os(iOS)
@Published var lockedOrientation: UIInterfaceOrientationMask?
@Default(.rotateToPortraitOnExitFullScreen) private var rotateToPortraitOnExitFullScreen
@Default(.rotateToLandscapeOnEnterFullScreen) private var rotateToLandscapeOnEnterFullScreen
#endif
@@ -1041,7 +1040,7 @@ final class PlayerModel: ObservableObject {
avPlayerBackend.controller.dismiss(animated: true)
return
}
let rotationOrientation = rotateToPortraitOnExitFullScreen ? UIInterfaceOrientation.portrait : nil
let rotationOrientation = Constants.isIPhone ? UIInterfaceOrientation.portrait : nil
Orientation.lockOrientation(.allButUpsideDown, andRotateTo: rotationOrientation)
}