diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2019-05-17 16:57:12 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2019-05-17 16:57:23 -0700 |
commit | 033404755301a70abece5a5e6e8426bd7e168d99 (patch) | |
tree | 90db26591b3c6593d3faf7f1030dfa2f4c2c317e /src | |
parent | 7c278b62f97d6218d3647c13d0216c9a67deb2ba (diff) | |
download | android_packages_apps_Trebuchet-033404755301a70abece5a5e6e8426bd7e168d99.tar.gz android_packages_apps_Trebuchet-033404755301a70abece5a5e6e8426bd7e168d99.tar.bz2 android_packages_apps_Trebuchet-033404755301a70abece5a5e6e8426bd7e168d99.zip |
Updating SDK check now that the version code is finalized
Change-Id: I2b8d65885f83154f7500adb520b1eed1da5c4a4e
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index af22f1b2f..796fd2505 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -107,9 +107,7 @@ public final class Utilities { private static final Matrix sMatrix = new Matrix(); private static final Matrix sInverseMatrix = new Matrix(); - public static final boolean ATLEAST_Q = Build.VERSION.CODENAME.length() == 1 - && Build.VERSION.CODENAME.charAt(0) >= 'Q' - && Build.VERSION.CODENAME.charAt(0) <= 'Z'; + public static final boolean ATLEAST_Q = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q; public static final boolean ATLEAST_P = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P; |