summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-11-02 11:22:39 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-11-03 15:25:23 -0700
commitdcc0ba29a5222c9b0002604299501b716cda0b56 (patch)
tree32e09e0ba71f39d504c5819c4b31e27b7bacde2c /src/com/android/launcher3/Utilities.java
parente4f09a5f0a756de15fee663097071a08de1ec8dd (diff)
downloadandroid_packages_apps_Trebuchet-dcc0ba29a5222c9b0002604299501b716cda0b56.tar.gz
android_packages_apps_Trebuchet-dcc0ba29a5222c9b0002604299501b716cda0b56.tar.bz2
android_packages_apps_Trebuchet-dcc0ba29a5222c9b0002604299501b716cda0b56.zip
Enabling async inflation for AppWidgets
Bug: 22839968 Change-Id: Id622053c2882f478b3a3ab3918a9f76750ead8c6
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 13a69f21c..be8ff00b7 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -84,6 +84,12 @@ public final class Utilities {
private static final int[] sLoc0 = new int[2];
private static final int[] sLoc1 = new int[2];
+ 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;