diff options
author | Kenny Guy <kennyguy@google.com> | 2014-09-16 15:17:58 +0100 |
---|---|---|
committer | Kenny Guy <kennyguy@google.com> | 2014-09-18 13:07:49 +0100 |
commit | d794a3f46521b972fa02826d379d1efa112793d2 (patch) | |
tree | eec45aa7526a5984f9a7e99c411c6e337dfa9939 /src/com/android/launcher3/Utilities.java | |
parent | 83e5941d8ef6ca33bdd6278f6089c8d6d00de942 (diff) | |
download | android_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.java | 7 |
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; } /** |