summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d
diff options
context:
space:
mode:
authorAhbong Chang <cwahbong@google.com>2012-07-17 16:58:17 +0800
committerAhbong Chang <cwahbong@google.com>2012-07-17 16:58:17 +0800
commit0f81000f72968aa378c7eb50e82f506aa77a6a33 (patch)
treef28de3728a45f4091de421e6974d924eb341effa /gallerycommon/src/com/android/gallery3d
parent109bbb6199f48aa677f425dc0d5fb2ae3e8765fc (diff)
downloadandroid_packages_apps_Snap-0f81000f72968aa378c7eb50e82f506aa77a6a33.tar.gz
android_packages_apps_Snap-0f81000f72968aa378c7eb50e82f506aa77a6a33.tar.bz2
android_packages_apps_Snap-0f81000f72968aa378c7eb50e82f506aa77a6a33.zip
Add checker for panorama supporting.
Bug: 6816669 Change-Id: I34f80485d46f04f7adc49e2fd49dea1a08a72af9
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java3
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 620e1ae7a..8ebdc1808 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -95,6 +95,9 @@ public class ApiHelper {
public static final boolean HAS_MEDIA_ACTION_SOUND =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+ public static final boolean HAS_PANORAMA =
+ Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {