diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java index be7eb6c..c1fb809 100644 --- a/src/android/SplashScreen.java +++ b/src/android/SplashScreen.java @@ -67,6 +67,9 @@ public class SplashScreen extends CordovaPlugin { String splashResource = preferences.getString("SplashScreen", null); if (splashResource != null) { drawableId = cordova.getActivity().getResources().getIdentifier(splashResource, "drawable", cordova.getActivity().getClass().getPackage().getName()); + if (drawableId == 0) { + drawableId = cordova.getActivity().getResources().getIdentifier(splashResource, "drawable", cordova.getActivity().getPackageName()); + } preferences.set("SplashDrawableId", drawableId); } }