Skip to content

Commit e5c6772

Browse files
committed
CB-13094: (android) Don't show splash when activity being finished
1 parent 7c0ab0f commit e5c6772

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/android/SplashScreen.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ private void showSplashScreen(final boolean hideAfterDelay) {
270270

271271
lastHideAfterDelay = hideAfterDelay;
272272

273+
// Prevent to show the splash dialog if the activity is in the process of finishing
274+
if (cordova.getActivity().isFinishing()) {
275+
return;
276+
}
273277
// If the splash dialog is showing don't try to show it again
274278
if (splashDialog != null && splashDialog.isShowing()) {
275279
return;

0 commit comments

Comments
 (0)