mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-30 03:44:18 +00:00
Fix intro transition on iPad with connected keyboard
This commit is contained in:
parent
85b17d5aec
commit
af9f5c2bfa
@ -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()
|
let _ = TelegramEngineUnauthorized(account: strongSelf.account).auth.setState(state: UnauthorizedAccountState(isTestingEnvironment: strongSelf.account.testingEnvironment, masterDatacenterId: strongSelf.account.masterDatacenterId, contents: .empty)).start()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if let splahController = splashController {
|
if let splashController = splashController {
|
||||||
controller.animateWithSplashController(splahController)
|
controller.animateWithSplashController(splashController)
|
||||||
}
|
}
|
||||||
controller.accountUpdated = { [weak self] updatedAccount in
|
controller.accountUpdated = { [weak self] updatedAccount in
|
||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
@ -1033,6 +1033,11 @@ public final class AuthorizationSequenceController: NavigationController, MFMail
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let validLayout = self.validLayout, case .tablet = validLayout.deviceMetrics.type {
|
||||||
|
previousSplashController = nil
|
||||||
|
}
|
||||||
|
|
||||||
controllers.append(self.phoneEntryController(countryCode: countryCode, number: number, splashController: previousSplashController))
|
controllers.append(self.phoneEntryController(countryCode: countryCode, number: number, splashController: previousSplashController))
|
||||||
self.setViewControllers(controllers, animated: !self.viewControllers.isEmpty && (previousSplashController == nil || self.viewControllers.count > 2))
|
self.setViewControllers(controllers, animated: !self.viewControllers.isEmpty && (previousSplashController == nil || self.viewControllers.count > 2))
|
||||||
case let .confirmationCodeEntry(number, type, _, timeout, nextType, _):
|
case let .confirmationCodeEntry(number, type, _, timeout, nextType, _):
|
||||||
|
|||||||
@ -158,7 +158,7 @@ open class NavigationController: UINavigationController, ContainableController,
|
|||||||
private var globalOverlayContainerParent: GlobalOverlayContainerParent?
|
private var globalOverlayContainerParent: GlobalOverlayContainerParent?
|
||||||
public var globalOverlayControllersUpdated: (() -> Void)?
|
public var globalOverlayControllersUpdated: (() -> Void)?
|
||||||
|
|
||||||
private var validLayout: ContainerViewLayout?
|
public private(set) var validLayout: ContainerViewLayout?
|
||||||
private var validStatusBarStyle: NavigationStatusBarStyle?
|
private var validStatusBarStyle: NavigationStatusBarStyle?
|
||||||
private var validStatusBarHidden: Bool = false
|
private var validStatusBarHidden: Bool = false
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user