FixRotation: (Issues During Rotation) Fix Completed

This commit is contained in:
rmotygullin committed 2021-11-05 14:01:00 +03:00
1 parent 08975badd3
commit 139082d366
2 files changed
+2 -4

No files matched your search

@@ -105,8 +105,7 @@ class MapsViewController: StoryboardController, MapsContainerControllerDelegate,
@objc func rotated() {
let orint = UIDevice.current.orientation
if orint == .faceUp || orint == .faceDown || orint == .portraitUpsideDown { return }
if !UIDevice.current.orientation.isRotateAllowed { return }
updateMapViewTopPadding()
}
@@ -211,8 +211,7 @@ open class ContainerController: NSObject {
@objc func rotated() {
let orint = UIDevice.current.orientation
if orint == .faceUp || orint == .faceDown || orint == .portraitUpsideDown { return }
if !UIDevice.current.orientation.isRotateAllowed { return }
if ContainerDevice.orientation == oldOrientation { return }
oldOrientation = ContainerDevice.orientation