Skip to content
Permalink
Browse files
CB-13094: (android) Don't show splash when activity being finished
  • Loading branch information
SharUpOff committed Jul 24, 2017
1 parent 7c0ab0f commit e5c6772f177a58c663efd3dbb8dbbc03ff9b463e
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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;

0 comments on commit e5c6772

Please sign in to comment.