diff options
Diffstat (limited to 'src/com/android/calendar/Utils.java')
-rw-r--r-- | src/com/android/calendar/Utils.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java index fc409cd4..40a9e58d 100644 --- a/src/com/android/calendar/Utils.java +++ b/src/com/android/calendar/Utils.java @@ -207,6 +207,15 @@ public class Utils { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; } + /** + * 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); + } + public static int getViewTypeFromIntentAndSharedPref(Activity activity) { Intent intent = activity.getIntent(); Bundle extras = intent.getExtras(); |