MasterTatBarVC: Fix navigation stack issue when show security screen.

This commit is contained in:
SBiOSoftWhare
2020-05-05 09:17:47 +02:00
parent 8e54446396
commit 4cb6964b8e
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -79,6 +79,9 @@
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// Note: UITabBarViewController shoud not be embed in a UINavigationController (https://github.com/vector-im/riot-ios/issues/3086)
[self vc_removeBackTitle];
// Retrieve the all view controllers
_homeViewController = self.viewControllers[TABBAR_HOME_INDEX];
@@ -1120,7 +1123,7 @@
SecurityViewController *securityViewController = [SecurityViewController instantiateWithMatrixSession:session];
[[AppDelegate theDelegate] restoreInitialDisplay:^{
self.navigationController.viewControllers = @[settingsViewController, securityViewController];
self.navigationController.viewControllers = @[self, settingsViewController, securityViewController];
}];
}