CB-13094: (android) Don't show splash when activity being finished
This commit is contained in:
parent
7c0ab0fa51
commit
e5c6772f17
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user