summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2015-05-22 19:23:34 -0700
committerAdam Cohen <adamcohen@google.com>2015-07-07 18:52:09 -0700
commit947e02b638c7947c6c97943041d7153edb7b562e (patch)
tree014e267dae077edcbc3407a80d5d2906c20819be /src/com/android/launcher3/Utilities.java
parentcc31d463279016d0ce1f15886a8cf2aee7d4c54b (diff)
downloadandroid_packages_apps_Trebuchet-947e02b638c7947c6c97943041d7153edb7b562e.tar.gz
android_packages_apps_Trebuchet-947e02b638c7947c6c97943041d7153edb7b562e.tar.bz2
android_packages_apps_Trebuchet-947e02b638c7947c6c97943041d7153edb7b562e.zip
Adding custom slide up activity transition for L MR1
issue 21402755 Change-Id: Id2542c0a3c38bd71aa407a3b0fe00fdee24e2f69
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 19334ed31..d0c24cd83 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -123,6 +123,11 @@ public final class Utilities {
return Build.VERSION.SDK_INT >= 22;
}
+ public static boolean isLmpMR1() {
+ // TODO(adamcohen): update to Build.VERSION_CODES.LOLLIPOP_MR1 once building against 22;
+ return Build.VERSION.SDK_INT == 22;
+ }
+
public static Bitmap createIconBitmap(Cursor c, int iconIndex, Context context) {
byte[] data = c.getBlob(iconIndex);
try {