diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java index 14b63790..b29f79e4 100644 --- a/src/android/SplashScreen.java +++ b/src/android/SplashScreen.java @@ -270,6 +270,10 @@ private void showSplashScreen(final boolean hideAfterDelay) { lastHideAfterDelay = hideAfterDelay; + // Prevent to show the splash dialog if the activity is in the process of finishing + if (cordova.getActivity().isFinishing()) { + return; + } // If the splash dialog is showing don't try to show it again if (splashDialog != null && splashDialog.isShowing()) { return;