From e5c6772f177a58c663efd3dbb8dbbc03ff9b463e Mon Sep 17 00:00:00 2001 From: Andrey Sharapov Date: Mon, 24 Jul 2017 16:36:34 +0400 Subject: [PATCH] CB-13094: (android) Don't show splash when activity being finished --- src/android/SplashScreen.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java index 14b6379..b29f79e 100644 --- a/src/android/SplashScreen.java +++ b/src/android/SplashScreen.java @@ -270,6 +270,10 @@ public class SplashScreen extends CordovaPlugin { 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;