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
commitc5c5f2558e9ed3bc46a94c5515481b1dac9ffd77 (patch)
treefe47021882c7c236d069ca3198cda14884df2385 /src
parent08476ae7099dcb4c65e348474d6abe7e9bb2a150 (diff)
downloadandroid_packages_apps_Snap-c5c5f2558e9ed3bc46a94c5515481b1dac9ffd77.tar.gz
android_packages_apps_Snap-c5c5f2558e9ed3bc46a94c5515481b1dac9ffd77.tar.bz2
android_packages_apps_Snap-c5c5f2558e9ed3bc46a94c5515481b1dac9ffd77.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);
}