CB-13094: (android) Don't show splash when activity being finished

This commit is contained in:
Andrey Sharapov 2017-07-24 16:36:34 +04:00
parent 7c0ab0fa51
commit e5c6772f17

View File

@ -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;