diff options
Diffstat (limited to 'src/com/android/browser/BaseUi.java')
-rw-r--r-- | src/com/android/browser/BaseUi.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 88829cc..ca91367 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java @@ -749,19 +749,10 @@ public abstract class BaseUi implements UI { public void setFullscreen(boolean enabled) { Window win = mActivity.getWindow(); WindowManager.LayoutParams winParams = win.getAttributes(); - final int bits = WindowManager.LayoutParams.FLAG_FULLSCREEN; + final int bits = WindowManager.LayoutParams.FLAG_FULLSCREEN + | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN; if (enabled) { winParams.flags |= bits; - if (mCustomView != null) { - // HTML5 Video can ask for the HIDE_NAVIGATION specifically, - // and we want to differentiate it from the flash. - if ((mCustomView.getSystemUiVisibility() - & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) { - mCustomView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); - } - } else { - mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); - } } else { winParams.flags &= ~bits; if (mCustomView != null) { |