From 033404755301a70abece5a5e6e8426bd7e168d99 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 17 May 2019 16:57:12 -0700 Subject: [PATCH] Updating SDK check now that the version code is finalized Change-Id: I2b8d65885f83154f7500adb520b1eed1da5c4a4e --- src/com/android/launcher3/Utilities.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index af22f1b2f1..796fd25057 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;