diff options
| author | Yuli Huang <yuli@google.com> | 2012-07-06 15:12:26 +0800 |
|---|---|---|
| committer | Yuli Huang <yuli@google.com> | 2012-07-06 15:15:49 +0800 |
| commit | b0774a3bfb24d8515fc3ddf152fabf82f0ff67e5 (patch) | |
| tree | 5d616171b63eafe78784925d4088f46e43ccd751 /src/com/android | |
| parent | fe9989a9a58d5ef883099ef747625aca0232df35 (diff) | |
| download | android_packages_apps_Gallery2-b0774a3bfb24d8515fc3ddf152fabf82f0ff67e5.tar.gz android_packages_apps_Gallery2-b0774a3bfb24d8515fc3ddf152fabf82f0ff67e5.tar.bz2 android_packages_apps_Gallery2-b0774a3bfb24d8515fc3ddf152fabf82f0ff67e5.zip | |
Avoid using setSystemUiVisibility in old platforms.
bug:6785569
Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f
Diffstat (limited to 'src/com/android')
| -rw-r--r-- | src/com/android/gallery3d/ui/GLRootView.java | 2 |
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; |
