Browse Source

Revert "Call recreate instead of finish and startActivity"

This reverts commit d3582d2780.
Daniel Zlotin 8 years ago
parent
commit
5626528d69

+ 4
- 1
android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java View File

@@ -17,6 +17,7 @@ import com.reactnativenavigation.params.TitleBarLeftButtonParams;
17 17
 import com.reactnativenavigation.react.JsDevReloadHandler;
18 18
 import com.reactnativenavigation.react.ReactGateway;
19 19
 import com.reactnativenavigation.react.RedboxPermission;
20
+import com.reactnativenavigation.utils.IntentUtils;
20 21
 
21 22
 import java.util.List;
22 23
 
@@ -43,11 +44,13 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
43 44
 
44 45
         if (!NavigationApplication.instance.isReactContextInitialized()) {
45 46
             waitingForNewJsContext = true;
46
-            recreate();
47
+            finish();
48
+            startActivity(IntentUtils.getLauncherIntent());
47 49
             return;
48 50
         }
49 51
 
50 52
         RedboxPermission.permissionToShowRedboxIfNeeded(this);
53
+
51 54
         activityParams = NavigationCommandsHandler.parseActivityParams(getIntent());
52 55
 
53 56
         disableActivityShowAnimationIfNeeded();