|
@@ -11,6 +11,7 @@ import android.view.View;
|
11
|
11
|
|
12
|
12
|
import com.reactnativenavigation.NavigationApplication;
|
13
|
13
|
import com.reactnativenavigation.react.ReactDevPermission;
|
|
14
|
+import com.reactnativenavigation.utils.CompatUtils;
|
14
|
15
|
|
15
|
16
|
public abstract class SplashActivity extends AppCompatActivity {
|
16
|
17
|
public static boolean isResumed = false;
|
|
@@ -39,6 +40,10 @@ public abstract class SplashActivity extends AppCompatActivity {
|
39
|
40
|
isResumed = true;
|
40
|
41
|
|
41
|
42
|
if (NavigationApplication.instance.getReactGateway().hasStartedCreatingContext()) {
|
|
43
|
+ if (CompatUtils.isSplashOpenedOverNavigationActivity(this, getIntent())) {
|
|
44
|
+ finish();
|
|
45
|
+ return;
|
|
46
|
+ }
|
42
|
47
|
NavigationApplication.instance.getEventEmitter().sendAppLaunchedEvent();
|
43
|
48
|
if (NavigationApplication.instance.clearHostOnActivityDestroy()) {
|
44
|
49
|
overridePendingTransition(0, 0);
|