File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,12 @@ class LoopAppManager: NSObject {
160160 statusTableViewController. deviceManager = deviceDataManager
161161 bluetoothStateManager. addBluetoothObserver ( statusTableViewController)
162162
163- let rootNavigationController = RootNavigationController ( )
164- rootViewController = rootNavigationController
165- rootNavigationController. setViewControllers ( [ statusTableViewController] , animated: true )
163+ var rootNavigationController = rootViewController as? RootNavigationController
164+ if rootNavigationController == nil {
165+ rootNavigationController = RootNavigationController ( )
166+ rootViewController = rootNavigationController
167+ }
168+ rootNavigationController? . setViewControllers ( [ statusTableViewController] , animated: true )
166169
167170 handleRemoteNotificationFromLaunchOptions ( )
168171
You can’t perform that action at this time.
0 commit comments