diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-12-16 09:15:32 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-12-16 11:10:49 -0800 |
commit | 88e5aa1d616f0d05fb8f9e2ca8000dcfb3824c67 (patch) | |
tree | 75860375e46255013ca761797af13349e378768a /src/com/android/launcher3/Utilities.java | |
parent | 7c74e4ae641e76f73d74348e293c244a157f6585 (diff) | |
download | android_packages_apps_Trebuchet-88e5aa1d616f0d05fb8f9e2ca8000dcfb3824c67.tar.gz android_packages_apps_Trebuchet-88e5aa1d616f0d05fb8f9e2ca8000dcfb3824c67.tar.bz2 android_packages_apps_Trebuchet-88e5aa1d616f0d05fb8f9e2ca8000dcfb3824c67.zip |
Using support lib for isAtleastO check
Bug: 32610406
Change-Id: I89b3c4f0c99ac605883677cf0becaab0fbf48a86
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 3e44e33be..6485fc137 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -41,6 +41,7 @@ import android.os.Bundle; import android.os.DeadObjectException; import android.os.PowerManager; import android.os.TransactionTooLargeException; +import android.support.v4.os.BuildCompat; import android.text.Spannable; import android.text.SpannableString; import android.text.TextUtils; @@ -89,9 +90,7 @@ public final class Utilities { 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; + return BuildCompat.isAtLeastO(); } public static final boolean ATLEAST_NOUGAT_MR1 = |