设置为全屏展示

This commit is contained in:
zher52 2019-11-14 15:18:03 +08:00
parent be85a1b14e
commit 0ffc88915b

View File

@ -315,11 +315,11 @@ 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
if ((cordova.getActivity().getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN)
== WindowManager.LayoutParams.FLAG_FULLSCREEN) {
// if ((cordova.getActivity().getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN)
// == WindowManager.LayoutParams.FLAG_FULLSCREEN) {
splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
// }
splashDialog.setContentView(splashImageView);
splashDialog.setCancelable(false);
splashDialog.show();