You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/03/30 15:48:35 UTC

[2/2] cordova-plugin-splashscreen git commit: CB-8345 Make default for splashscreen resource "screen" (which is what template and CLI assume it to be)

CB-8345 Make default for splashscreen resource "screen" (which is what template and CLI assume it to be)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/9b3f7500
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/9b3f7500
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/9b3f7500

Branch: refs/heads/master
Commit: 9b3f750085c08de9a4210079af52786851da4f80
Parents: ba6730e
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Mar 30 09:48:04 2015 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Mar 30 09:48:04 2015 -0400

----------------------------------------------------------------------
 src/android/SplashScreen.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/9b3f7500/src/android/SplashScreen.java
----------------------------------------------------------------------
diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java
index ec3ad93..d84eea4 100644
--- a/src/android/SplashScreen.java
+++ b/src/android/SplashScreen.java
@@ -64,7 +64,7 @@ public class SplashScreen extends CordovaPlugin {
         getView().setVisibility(View.INVISIBLE);
         int drawableId = preferences.getInteger("SplashDrawableId", 0);
         if (drawableId == 0) {
-            String splashResource = preferences.getString("SplashScreen", null);
+            String splashResource = preferences.getString("SplashScreen", "screen");
             if (splashResource != null) {
                 drawableId = cordova.getActivity().getResources().getIdentifier(splashResource, "drawable", cordova.getActivity().getClass().getPackage().getName());
                 if (drawableId == 0) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org