CB-878: Splash screen in Android fullscreen mode showing not correct

This commit is contained in:
macdonst 2012-06-08 13:59:32 -04:00
parent d87f404d6e
commit 6c1a2e1230

View File

@ -1046,8 +1046,12 @@ public class DroidGap extends Activity implements CordovaInterface {
// Create and show the dialog // Create and show the dialog
splashDialog = new Dialog(this, android.R.style.Theme_Translucent_NoTitleBar); splashDialog = new Dialog(this, android.R.style.Theme_Translucent_NoTitleBar);
// check to see if the splash screen should be full screen
if ((getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN)
== WindowManager.LayoutParams.FLAG_FULLSCREEN) {
splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN); WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
splashDialog.setContentView(root); splashDialog.setContentView(root);
splashDialog.setCancelable(false); splashDialog.setCancelable(false);
splashDialog.show(); splashDialog.show();