Upstream version 9.37.193.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core_internal / src / org / xwalk / core / internal / XWalkLaunchScreenManager.java
index 4467121..61cf68b 100644 (file)
@@ -105,12 +105,12 @@ public class XWalkLaunchScreenManager
 
                 mLaunchScreenDialog = new Dialog(mLibContext,
                                                  android.R.style.Theme_Holo_Light_NoActionBar);
-                if ((mActivity.getWindow().getAttributes().flags &
-                     WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0) {
-                    mLaunchScreenDialog.getWindow().setFlags(
-                            WindowManager.LayoutParams.FLAG_FULLSCREEN,
-                            WindowManager.LayoutParams.FLAG_FULLSCREEN);
-                }
+
+                int parentVisibility = mActivity.getWindow().getDecorView().getSystemUiVisibility();
+                WindowManager.LayoutParams parentParams = mActivity.getWindow().getAttributes();
+                mLaunchScreenDialog.getWindow().getDecorView().setSystemUiVisibility(parentVisibility);
+                mLaunchScreenDialog.getWindow().setAttributes(parentParams);
+
                 mLaunchScreenDialog.setOnKeyListener(new Dialog.OnKeyListener() {
                     @Override
                     public boolean onKey(DialogInterface arg0, int keyCode,