From d44a8f9996cc4b470ebc4667b4227d238c40d2f2 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 21 Nov 2018 16:39:40 -0800 Subject: [PATCH] Sketch out the backup restore view. --- Signal/src/AppDelegate.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index b342ab2ce..f20a7aedf 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -1264,6 +1264,7 @@ static NSTimeInterval launchStartedAt; OWSLogInfo(@"Presenting app %.2f seconds after launch started.", startupDuration); UIViewController *rootViewController; + BOOL navigationBarHidden = NO; if ([self.tsAccountManager isRegistered]) { if (self.backup.hasPendingRestoreDecision) { rootViewController = [BackupRestoreViewController new]; @@ -1272,11 +1273,12 @@ static NSTimeInterval launchStartedAt; } } else { rootViewController = [RegistrationViewController new]; + navigationBarHidden = YES; } OWSAssertDebug(rootViewController); OWSNavigationController *navigationController = [[OWSNavigationController alloc] initWithRootViewController:rootViewController]; - navigationController.navigationBarHidden = YES; + navigationController.navigationBarHidden = navigationBarHidden; self.window.rootViewController = navigationController; [AppUpdateNag.sharedInstance showAppUpgradeNagIfNecessary];