From 94631e171a6a48f7850d469d6f346e132e818ee9 Mon Sep 17 00:00:00 2001 From: zher52 Date: Thu, 2 Apr 2020 09:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/android/SplashScreen.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,