CB-9374 Android: add SplashShowOnlyFirstTime as preference

Github: close #70
This commit is contained in:
Wilson Pinto
2015-12-26 18:36:37 +00:00
committed by daserge
parent fa3b665223
commit 1e67606c60
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -89,7 +89,10 @@ public class SplashScreen extends CordovaPlugin {
// Save initial orientation.
orientation = cordova.getActivity().getResources().getConfiguration().orientation;
firstShow = false;
if (preferences.getBoolean("SplashShowOnlyFirstTime", true)) {
firstShow = false;
}
loadSpinner();
showSplashScreen(true);
}