From 6cc3d1f3fe71309055a9f3778c75c5360c0a1ec6 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 7 May 2015 15:59:22 -0700 Subject: [PATCH] CB-8904: Don't reset the static variable when it's destroyed, otherwise we might as well just have a member variable --- src/android/SplashScreen.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java index 9258a27..75ad724 100644 --- a/src/android/SplashScreen.java +++ b/src/android/SplashScreen.java @@ -117,7 +117,8 @@ public class SplashScreen extends CordovaPlugin { } // hide the splash screen to avoid leaking a window this.removeSplashScreen(); - firstShow = true; + // If we set this to true onDestroy, we lose track when we go from page to page! + //firstShow = true; } @Override