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

This commit is contained in:
Andrew Grieve 2015-03-30 09:48:04 -04:00
parent ba6730e594
commit 9b3f750085

View File

@ -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) {