summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2014-09-16 15:17:58 +0100
committerKenny Guy <kennyguy@google.com>2014-09-18 13:07:49 +0100
commitd794a3f46521b972fa02826d379d1efa112793d2 (patch)
treeeec45aa7526a5984f9a7e99c411c6e337dfa9939 /src/com/android/launcher3/Utilities.java
parent83e5941d8ef6ca33bdd6278f6089c8d6d00de942 (diff)
downloadandroid_packages_apps_Trebuchet-d794a3f46521b972fa02826d379d1efa112793d2.tar.gz
android_packages_apps_Trebuchet-d794a3f46521b972fa02826d379d1efa112793d2.tar.bz2
android_packages_apps_Trebuchet-d794a3f46521b972fa02826d379d1efa112793d2.zip
Update calls now we have an L API version.
Bug: 17543647 Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index f20f261f9..80d4b22ce 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -103,11 +103,10 @@ public final class Utilities {
}
/**
- * Indicates if the device is running LMP or not.
- * TODO(sansid): Change the check to a VERSION_CODES code check once we have a version for L.
+ * Indicates if the device is running LMP or higher.
*/
- public static boolean isLmp() {
- return "L".equals(Build.VERSION.CODENAME);
+ public static boolean isLmpOrAbove() {
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.L;
}
/**