Pārlūkot izejas kodu

Finish SplahActivity if react context exists

Fixes #1938 Closes #1900
Guy Carmeli 7 gadus atpakaļ
vecāks
revīzija
5c266e4436

+ 4
- 0
android/app/src/main/java/com/reactnativenavigation/controllers/SplashActivity.java Parādīt failu

@@ -27,6 +27,10 @@ public abstract class SplashActivity extends AppCompatActivity {
27 27
 
28 28
         if (NavigationApplication.instance.getReactGateway().hasStartedCreatingContext()) {
29 29
             NavigationApplication.instance.getEventEmitter().sendAppLaunchedEvent();
30
+            if (NavigationApplication.instance.clearHostOnActivityDestroy()) {
31
+                overridePendingTransition(0, 0);
32
+                finish();
33
+            }
30 34
             return;
31 35
         }
32 36