diff options
author | Michael Kolb <kolby@google.com> | 2011-12-02 15:34:27 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-12-02 15:34:27 -0800 |
commit | 1db0f9939568a7e8987f923f3061bebf9ce7e1a1 (patch) | |
tree | 2c2b6dfaa5a5c33df5ee8c6577862a92b57e27cc | |
parent | c5b0b2db3b917e658700642763fb50da0057716b (diff) | |
download | packages_apps_browser-1db0f9939568a7e8987f923f3061bebf9ce7e1a1.zip packages_apps_browser-1db0f9939568a7e8987f923f3061bebf9ce7e1a1.tar.gz packages_apps_browser-1db0f9939568a7e8987f923f3061bebf9ce7e1a1.tar.bz2 |
Remove unnecessary flags
Bug: 5494143
handled by HTML5FullScreenView now
Change-Id: Ifdf3d0e2835acde856a9278d03f91a6ed4089b37
-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) { |