diff --git a/README.md b/README.md index 48c7015..2e3161c 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ description: Control the splash screen for your app. ### config.xml -- `FadeSplashFullScreen` (boolean, default to `true`). 在app未设置全屏的情况下FadeSplash是否全屏显示 +- `SplashFullScreen` (boolean, default to `true`). 在app未设置全屏的情况下FadeSplash是否全屏显示 ```xml - + ``` ## Other diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java index 5a7f0bb..b80e7ee 100644 --- a/src/android/SplashScreen.java +++ b/src/android/SplashScreen.java @@ -315,7 +315,7 @@ public class SplashScreen extends CordovaPlugin { // Create and show the dialog splashDialog = new Dialog(context, android.R.style.Theme_Translucent_NoTitleBar); // check to see if the splash screen should be full screen - boolean fullscreen = preferences.getBoolean("FadeSplashFullScreen", true); + boolean fullscreen = preferences.getBoolean("SplashFullScreen", true); if (fullscreen || ((cordova.getActivity().getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN) == WindowManager.LayoutParams.FLAG_FULLSCREEN)) { splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,