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 | 5424e3274478fca29eb8bf8a8c92140e85b8925a (patch) | |
tree | 7dcd3939e0abbc092815de69163a4c0d2a1cda62 /gallerycommon/src/com | |
parent | 3969aca03ea7537e793c5c55acec752148151480 (diff) | |
download | android_packages_apps_Snap-5424e3274478fca29eb8bf8a8c92140e85b8925a.tar.gz android_packages_apps_Snap-5424e3274478fca29eb8bf8a8c92140e85b8925a.tar.bz2 android_packages_apps_Snap-5424e3274478fca29eb8bf8a8c92140e85b8925a.zip |
Avoid using setSystemUiVisibility in old platforms.
bug:6785569
Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f
Diffstat (limited to 'gallerycommon/src/com')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/ApiHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java index 20098e4b4..b5db3c88e 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java @@ -70,6 +70,9 @@ public class ApiHelper { public static final boolean HAS_INTENT_EXTRA_LOCAL_ONLY = Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; + public static final boolean HAS_SET_SYSTEM_UI_VISIBILITY = + hasMethod(View.class, "setSystemUiVisibility", int.class); + private static boolean hasField(Class<?> klass, String fieldName) { try { klass.getDeclaredField(fieldName); |