diff options
author | Michael Kolb <kolby@google.com> | 2011-12-05 09:24:10 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-12-05 09:24:10 -0800 |
commit | 861d52c80430edeb0eba6f73cd0e206e27f4ac6b (patch) | |
tree | e4b197b0d150f0713207dad0d4d42558db64aab1 /src/com/android/browser | |
parent | 31ae2cc171ed6355d958ea05501ce6e7ef0ad223 (diff) | |
parent | 1db0f9939568a7e8987f923f3061bebf9ce7e1a1 (diff) | |
download | packages_apps_Browser-861d52c80430edeb0eba6f73cd0e206e27f4ac6b.zip packages_apps_Browser-861d52c80430edeb0eba6f73cd0e206e27f4ac6b.tar.gz packages_apps_Browser-861d52c80430edeb0eba6f73cd0e206e27f4ac6b.tar.bz2 |
Merge "Remove unnecessary flags" into ics-mr1
Diffstat (limited to 'src/com/android/browser')
-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) { |