mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Properly use the new hideBrandChrome in the AuthenticationStartLogo
This commit is contained in:
committed by
Stefan Ceriu
parent
8236893290
commit
39a757d037
@@ -22,6 +22,7 @@ enum AppLockFlowCoordinatorAction: Equatable {
|
||||
class AppLockFlowCoordinator: CoordinatorProtocol {
|
||||
let appLockService: AppLockServiceProtocol
|
||||
let navigationCoordinator: NavigationRootCoordinator
|
||||
let appSettings: AppSettings
|
||||
|
||||
/// States the flow can find itself in
|
||||
enum State: StateType {
|
||||
@@ -89,9 +90,11 @@ class AppLockFlowCoordinator: CoordinatorProtocol {
|
||||
init(initialState: State = .initial,
|
||||
appLockService: AppLockServiceProtocol,
|
||||
navigationCoordinator: NavigationRootCoordinator,
|
||||
notificationCenter: NotificationCenter = .default) {
|
||||
notificationCenter: NotificationCenter = .default,
|
||||
appSettings: AppSettings) {
|
||||
self.appLockService = appLockService
|
||||
self.navigationCoordinator = navigationCoordinator
|
||||
self.appSettings = appSettings
|
||||
|
||||
// Set the initial state and start with the placeholder screen as the root view.
|
||||
stateMachine = .init(state: initialState)
|
||||
@@ -218,7 +221,7 @@ class AppLockFlowCoordinator: CoordinatorProtocol {
|
||||
|
||||
/// Displays the unlock flow with the app's placeholder view to hide obscure the view hierarchy in the app switcher.
|
||||
private func showPlaceholder() {
|
||||
navigationCoordinator.setRootCoordinator(PlaceholderScreenCoordinator(hideBrandChrome: false), animated: false)
|
||||
navigationCoordinator.setRootCoordinator(PlaceholderScreenCoordinator(hideBrandChrome: appSettings.hideBrandChrome), animated: false)
|
||||
actionsSubject.send(.lockApp)
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
navigationTabCoordinator = NavigationTabCoordinator()
|
||||
navigationRootCoordinator.setRootCoordinator(navigationTabCoordinator)
|
||||
|
||||
let chatsSplitCoordinator = NavigationSplitCoordinator(placeholderCoordinator: PlaceholderScreenCoordinator())
|
||||
let chatsSplitCoordinator = NavigationSplitCoordinator(placeholderCoordinator: PlaceholderScreenCoordinator(hideBrandChrome: flowParameters.appSettings.hideBrandChrome))
|
||||
chatsFlowCoordinator = ChatsFlowCoordinator(isNewLogin: isNewLogin,
|
||||
navigationSplitCoordinator: chatsSplitCoordinator,
|
||||
flowParameters: flowParameters)
|
||||
@@ -88,7 +88,7 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
chatsTabDetails.barVisibilityOverride = .hidden
|
||||
}
|
||||
|
||||
let spacesSplitCoordinator = NavigationSplitCoordinator(placeholderCoordinator: PlaceholderScreenCoordinator())
|
||||
let spacesSplitCoordinator = NavigationSplitCoordinator(placeholderCoordinator: PlaceholderScreenCoordinator(hideBrandChrome: flowParameters.appSettings.hideBrandChrome))
|
||||
spaceExplorerFlowCoordinator = SpaceExplorerFlowCoordinator(navigationSplitCoordinator: spacesSplitCoordinator,
|
||||
flowParameters: flowParameters)
|
||||
spacesTabDetails = .init(tag: HomeTab.spaces, title: L10n.screenHomeTabSpaces, icon: \.space, selectedIcon: \.spaceSolid)
|
||||
|
||||
Reference in New Issue
Block a user