From f7d461c6efebcd9fa29236fbddc31b702c87fba8 Mon Sep 17 00:00:00 2001 From: Yuli Huang Date: Fri, 6 Jul 2012 15:12:26 +0800 Subject: Avoid using setSystemUiVisibility in old platforms. bug:6785569 Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f --- src/com/android/gallery3d/ui/GLRootView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3