Fix passcode lock view rotation problem

This commit is contained in:
Yishi Lin 2017-07-16 23:15:24 +08:00
parent 4b5ea10b40
commit fa78a7e0b7

View file

@ -40,11 +40,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
if let _ = window?.rootViewController as? PasscodeLockViewController {
// Force the PasscodeLockVC to be portrait because the rotation seems bugy in some cases
return .portrait
} else {
return .all
window?.frame = UIScreen.main.bounds
}
return .all
}
func postSearchNotification() {