diff --git a/submodules/AuthorizationUI/Sources/AuthorizationSequenceController.swift b/submodules/AuthorizationUI/Sources/AuthorizationSequenceController.swift index e11f73e1cb..aba53912c3 100644 --- a/submodules/AuthorizationUI/Sources/AuthorizationSequenceController.swift +++ b/submodules/AuthorizationUI/Sources/AuthorizationSequenceController.swift @@ -155,8 +155,8 @@ public final class AuthorizationSequenceController: NavigationController, MFMail let _ = TelegramEngineUnauthorized(account: strongSelf.account).auth.setState(state: UnauthorizedAccountState(isTestingEnvironment: strongSelf.account.testingEnvironment, masterDatacenterId: strongSelf.account.masterDatacenterId, contents: .empty)).start() } }) - if let splahController = splashController { - controller.animateWithSplashController(splahController) + if let splashController = splashController { + controller.animateWithSplashController(splashController) } controller.accountUpdated = { [weak self] updatedAccount in guard let strongSelf = self else { @@ -1033,6 +1033,11 @@ public final class AuthorizationSequenceController: NavigationController, MFMail break } } + + if let validLayout = self.validLayout, case .tablet = validLayout.deviceMetrics.type { + previousSplashController = nil + } + controllers.append(self.phoneEntryController(countryCode: countryCode, number: number, splashController: previousSplashController)) self.setViewControllers(controllers, animated: !self.viewControllers.isEmpty && (previousSplashController == nil || self.viewControllers.count > 2)) case let .confirmationCodeEntry(number, type, _, timeout, nextType, _): diff --git a/submodules/Display/Source/Navigation/NavigationController.swift b/submodules/Display/Source/Navigation/NavigationController.swift index b5b58f0352..823007d572 100644 --- a/submodules/Display/Source/Navigation/NavigationController.swift +++ b/submodules/Display/Source/Navigation/NavigationController.swift @@ -158,7 +158,7 @@ open class NavigationController: UINavigationController, ContainableController, private var globalOverlayContainerParent: GlobalOverlayContainerParent? public var globalOverlayControllersUpdated: (() -> Void)? - private var validLayout: ContainerViewLayout? + public private(set) var validLayout: ContainerViewLayout? private var validStatusBarStyle: NavigationStatusBarStyle? private var validStatusBarHidden: Bool = false