summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-05-21 19:22:51 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-22 11:57:25 -0700
commite919bcff63e898d53869725a979cdfd01ef92b08 (patch)
tree2872a495bf39bda07b03f36b30de1101ba8e7d59 /src
parentc2c0b01fbbf243eee1a11c33ba6dd1ce918a9ce5 (diff)
downloadandroid_packages_apps_Gallery2-e919bcff63e898d53869725a979cdfd01ef92b08.tar.gz
android_packages_apps_Gallery2-e919bcff63e898d53869725a979cdfd01ef92b08.tar.bz2
android_packages_apps_Gallery2-e919bcff63e898d53869725a979cdfd01ef92b08.zip
Hide status bar in lights out mode.
Bug: 6451200 Change-Id: I6ad5ffc203fd8e6be9191ba13a4a99eb716c4734
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/ui/GLRootView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java
index 8783b66bb..8b8299287 100644
--- a/src/com/android/gallery3d/ui/GLRootView.java
+++ b/src/com/android/gallery3d/ui/GLRootView.java
@@ -514,7 +514,11 @@ public class GLRootView extends GLSurfaceView
@Override
public void setLightsOutMode(boolean enabled) {
- int flags = enabled ? SYSTEM_UI_FLAG_LOW_PROFILE : 0;
+ int flags = enabled
+ ? SYSTEM_UI_FLAG_LOW_PROFILE
+ | SYSTEM_UI_FLAG_FULLSCREEN
+ | SYSTEM_UI_FLAG_LAYOUT_STABLE
+ : 0;
setSystemUiVisibility(flags);
}