fix no PhoneMainView

This commit is contained in:
Danmei Chen 2019-06-26 17:09:07 +02:00
parent 9baabe0735
commit 9d90f78276

View file

@ -80,7 +80,7 @@
- (void)applicationDidBecomeActive:(UIApplication *)application {
LOGI(@"%@", NSStringFromSelector(_cmd));
if (!startedInBackground) {
if (!startedInBackground || PhoneMainView.instance.currentView == nil) {
startedInBackground = TRUE;
// initialize UI
[PhoneMainView.instance startUp];