summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuli Huang <yuli@google.com>2012-07-06 15:12:26 +0800
committerYuli Huang <yuli@google.com>2012-07-06 15:15:49 +0800
commitf7d461c6efebcd9fa29236fbddc31b702c87fba8 (patch)
tree5edd503d2c540ff6d6ca9c4adfbe9b848bbd9837 /src
parentb98ecd613b64dff8b025ba14fc017ed6ccb191ab (diff)
downloadandroid_packages_apps_Snap-f7d461c6efebcd9fa29236fbddc31b702c87fba8.tar.gz
android_packages_apps_Snap-f7d461c6efebcd9fa29236fbddc31b702c87fba8.tar.bz2
android_packages_apps_Snap-f7d461c6efebcd9fa29236fbddc31b702c87fba8.zip
Avoid using setSystemUiVisibility in old platforms.
bug:6785569 Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/ui/GLRootView.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java
index fe4e19d7b..9fd9473dc 100644
--- a/src/com/android/gallery3d/ui/GLRootView.java
+++ b/src/com/android/gallery3d/ui/GLRootView.java
@@ -539,6 +539,8 @@ public class GLRootView extends GLSurfaceView
@Override
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public void setLightsOutMode(boolean enabled) {
+ if (!ApiHelper.HAS_SET_SYSTEM_UI_VISIBILITY) return;
+
int flags = 0;
if (enabled) {
flags = STATUS_BAR_HIDDEN;