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,