summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2013-02-25 19:43:56 -0800
committerMichael Kolb <kolby@google.com>2013-02-25 19:53:06 -0800
commit08650187c1f1a2d1ef7f754be0f479a29958daaa (patch)
tree915cc3bb5f28d592c0b948928788f99d4c4b10e0 /gallerycommon/src/com
parent02ef5ba117462eda524820b6004f84d26b28f647 (diff)
downloadandroid_packages_apps_Snap-08650187c1f1a2d1ef7f754be0f479a29958daaa.zip
android_packages_apps_Snap-08650187c1f1a2d1ef7f754be0f479a29958daaa.tar.gz
android_packages_apps_Snap-08650187c1f1a2d1ef7f754be0f479a29958daaa.tar.bz2
Use cross fade rotation animation
Bug: 8257846 Change-Id: I891eda12f3de2ec0cd0f7672b991a19e6464873c
Diffstat (limited to 'gallerycommon/src/com')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index 56adcb1..4200ec7 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -22,6 +22,7 @@ import android.hardware.Camera;
import android.os.Build;
import android.provider.MediaStore.MediaColumns;
import android.view.View;
+import android.view.WindowManager;
import java.lang.reflect.Field;
@@ -179,6 +180,9 @@ public class ApiHelper {
public static final boolean HAS_GLES20_REQUIRED =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
+ public static final boolean HAS_ROTATION_ANIMATION =
+ hasField(WindowManager.LayoutParams.class, "rotationAnimation");
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {