- 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);
+