summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Blitzstein <sblitz@google.com>2013-10-09 11:25:32 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 11:25:32 -0700
commit9c4a00b258312d2b13f55f5f4268df96b50ecf03 (patch)
treebf53d3372bce07342adc7862248a7fc5463cbd09
parent29253b4d7796a76f76d8669f11703575a63ed2ab (diff)
parentb86f4d1b615c73c36caa17f16db52e1837175f37 (diff)
downloadCalendar-9c4a00b258312d2b13f55f5f4268df96b50ecf03.tar.gz
am b86f4d1b: am 84f75c86: Use the correct version code check for K.
* commit 'b86f4d1b615c73c36caa17f16db52e1837175f37': Use the correct version code check for K.
-rw-r--r--src/com/android/calendar/Utils.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java
index 40a9e58d..4018f22b 100644
--- a/src/com/android/calendar/Utils.java
+++ b/src/com/android/calendar/Utils.java
@@ -211,9 +211,7 @@ public class Utils {
* 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) {