summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-11-10 19:50:24 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-11-10 19:50:24 +0000
commitf4a0d1886fe5fcce3a3b722f675832b44f6e31c4 (patch)
tree8481af0fb7ebd4cccca4866211b175a7cb139979 /src/com/android/launcher3/Utilities.java
parent9117e94e4cb4a7da0b306314f174c28431e6bdb3 (diff)
parentdcc0ba29a5222c9b0002604299501b716cda0b56 (diff)
downloadandroid_packages_apps_Trebuchet-f4a0d1886fe5fcce3a3b722f675832b44f6e31c4.tar.gz
android_packages_apps_Trebuchet-f4a0d1886fe5fcce3a3b722f675832b44f6e31c4.tar.bz2
android_packages_apps_Trebuchet-f4a0d1886fe5fcce3a3b722f675832b44f6e31c4.zip
Merge "Enabling async inflation for AppWidgets" into ub-launcher3-master
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 568a52f85..e82c32e89 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -85,6 +85,12 @@ public final class Utilities {
private static final Matrix sMatrix = new Matrix();
private static final Matrix sInverseMatrix = new Matrix();
+ public static boolean isAtLeastO() {
+ // TODO: Clean this up: b/32610406
+ return !"REL".equals(Build.VERSION.CODENAME)
+ && "O".compareTo(Build.VERSION.CODENAME) <= 0;
+ }
+
public static final boolean ATLEAST_NOUGAT_MR1 =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1;