修改参数名称
This commit is contained in:
parent
db3adec857
commit
94631e171a
@ -42,10 +42,10 @@ description: Control the splash screen for your app.
|
|||||||
|
|
||||||
### config.xml
|
### config.xml
|
||||||
|
|
||||||
- `FadeSplashFullScreen` (boolean, default to `true`). 在app未设置全屏的情况下FadeSplash是否全屏显示
|
- `SplashFullScreen` (boolean, default to `true`). 在app未设置全屏的情况下FadeSplash是否全屏显示
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<preference name="FadeSplashFullScreen" value="true" />
|
<preference name="SplashFullScreen" value="true" />
|
||||||
```
|
```
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ public class SplashScreen extends CordovaPlugin {
|
|||||||
// Create and show the dialog
|
// Create and show the dialog
|
||||||
splashDialog = new Dialog(context, android.R.style.Theme_Translucent_NoTitleBar);
|
splashDialog = new Dialog(context, android.R.style.Theme_Translucent_NoTitleBar);
|
||||||
// check to see if the splash screen should be full screen
|
// 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)
|
if (fullscreen || ((cordova.getActivity().getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN)
|
||||||
== WindowManager.LayoutParams.FLAG_FULLSCREEN)) {
|
== WindowManager.LayoutParams.FLAG_FULLSCREEN)) {
|
||||||
splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
|
splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user