summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2015-05-26 23:03:31 -0700
committerAdam Cohen <adamcohen@google.com>2015-05-27 13:55:09 -0700
commit1558893b873cd55b2df779f594f1de3c370d3328 (patch)
treedc79aa6ae27c704d74ce904a9860c9ae320e898c /src/com/android/launcher3/Utilities.java
parentbbcf5ac7aa73a3ce07215d77a0b496cf7fb00f29 (diff)
downloadandroid_packages_apps_Trebuchet-1558893b873cd55b2df779f594f1de3c370d3328.tar.gz
android_packages_apps_Trebuchet-1558893b873cd55b2df779f594f1de3c370d3328.tar.bz2
android_packages_apps_Trebuchet-1558893b873cd55b2df779f594f1de3c370d3328.zip
Make sure all transition components run on the same thread
-> The framework circular reveal transition runs on the render thread which can cause problems when mixed in an AnimatorSet with transitions that don't run on the render thread -> See issue 17556455 issue 21445293 Change-Id: Ie19c184c55060651e817d426ec83049b06af56ba
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 6c4b7207b..256eba020 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -127,6 +127,11 @@ public final class Utilities {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
}
+ public static boolean isLmpMR1OrAbove() {
+ // TODO(adamcohen): update to Build.VERSION_CODES.LOLLIPOP_MR1 once building against 22;
+ return Build.VERSION.SDK_INT >= 22;
+ }
+
static Bitmap createIconBitmap(Cursor c, int iconIndex, Context context) {
byte[] data = c.getBlob(iconIndex);
try {
@@ -588,7 +593,6 @@ public final class Utilities {
}
public static final Comparator<ItemInfo> RANK_COMPARATOR = new Comparator<ItemInfo>() {
-
@Override
public int compare(ItemInfo lhs, ItemInfo rhs) {
return lhs.rank - rhs.rank;