Use the correct version code check for K.
Bug: 11151451
Change-Id: I190d33b06263e15157ea457d6ab76dc4fe5e497a
(cherry picked from commit 4e7b1b2244f2dbd4fa30cc506864f3be19a95f01)
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java
index 40a9e58..4018f22 100644
--- a/src/com/android/calendar/Utils.java
+++ b/src/com/android/calendar/Utils.java
@@ -211,9 +211,7 @@
* Returns whether the SDK is the KeyLimePie release or later.
*/
public static boolean isKeyLimePieOrLater() {
- // TODO when SDK is set to 19, switch back to this:
-// return Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2;
- return "KeyLimePie".equals(Build.VERSION.CODENAME);
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
}
public static int getViewTypeFromIntentAndSharedPref(Activity activity) {