summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Rizzoli <joey@cyanogenmoditalia.it>2016-06-11 11:14:07 +0200
committerArne Coucheron <arco68@gmail.com>2017-03-10 07:20:34 +0100
commite20c65beb6a19d4051dec284709d572211e4fc01 (patch)
tree09c5a87aa9c74b02c180356a02e1094299bfea2e
parente0a45e8852ee492ee0467b957cd2a7defc5ddcef (diff)
downloadandroid_packages_apps_Gallery2-e20c65beb6a19d4051dec284709d572211e4fc01.tar.gz
android_packages_apps_Gallery2-e20c65beb6a19d4051dec284709d572211e4fc01.tar.bz2
android_packages_apps_Gallery2-e20c65beb6a19d4051dec284709d572211e4fc01.zip
Gallery2: hide navigation bar when we turn off lights
Change-Id: If702cb7c79d3f7ef2f03417f7cb2bc0051932a97 Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
-rwxr-xr-xsrc/com/android/gallery3d/ui/GLRootView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java
index 579fd05d0..c8f5415cb 100755
--- a/src/com/android/gallery3d/ui/GLRootView.java
+++ b/src/com/android/gallery3d/ui/GLRootView.java
@@ -574,7 +574,9 @@ public class GLRootView extends GLSurfaceView
if (enabled) {
flags = STATUS_BAR_HIDDEN;
if (ApiHelper.HAS_VIEW_SYSTEM_UI_FLAG_LAYOUT_STABLE) {
- flags |= (SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_LAYOUT_STABLE);
+ flags |= (SYSTEM_UI_FLAG_FULLSCREEN
+ | SYSTEM_UI_FLAG_LAYOUT_STABLE
+ | SYSTEM_UI_FLAG_HIDE_NAVIGATION);
}
}
setSystemUiVisibility(flags);