diff options
| author | Pin Ting <pinting@google.com> | 2012-08-07 15:53:18 -0700 |
|---|---|---|
| committer | Pin Ting <pinting@google.com> | 2012-08-07 16:19:00 -0700 |
| commit | 28038df8ccc1422541276974e9cf140fd4b76f1e (patch) | |
| tree | e22e10e311520eb0678aca8ffa137c1a2d951a83 /gallerycommon | |
| parent | 6b06d7b738a31945d190fb44002f64540ae6c3ae (diff) | |
| download | android_packages_apps_Gallery2-28038df8ccc1422541276974e9cf140fd4b76f1e.tar.gz android_packages_apps_Gallery2-28038df8ccc1422541276974e9cf140fd4b76f1e.tar.bz2 android_packages_apps_Gallery2-28038df8ccc1422541276974e9cf140fd4b76f1e.zip | |
Hide effect recording UI in ICS api level.
Bug:6913179
Change-Id: I76e533fa04ac35a1e5b1ee54b9e120434e96ebbf
Diffstat (limited to 'gallerycommon')
| -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 fbe0fbbb5..3150442c7 100644 --- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java +++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java @@ -133,6 +133,9 @@ public class ApiHelper { public static final boolean HAS_SHARE_ACTION_PROVIDER = Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH; + public static final boolean HAS_EFFECTS_RECORDING = + Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + public static int getIntFieldIfExists(Class<?> klass, String fieldName, Class<?> obj, int defaultVal) { try { |
