Skip to content

Commit

Permalink
CB-13094: (android) Don't show splash when activity being finished
Browse files Browse the repository at this point in the history
  • Loading branch information
SharUpOff committed Jul 24, 2017
1 parent 7c0ab0f commit e5c6772
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/android/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e5c6772

Please sign in to comment.