Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67cdfec1 authored by Sam Blitzstein's avatar Sam Blitzstein
Browse files

Use Build.VERSION.CODENAME instead of SDK_INT until its set to 19.

SDK_INT is still set to 18 until K SDK is finalized. Until then we
can use CODENAME to see when we're on KLP.

Change-Id: I4129e99e604dad5769e790401879879a9909701e
parent 3a8cccb8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -85,7 +85,9 @@ public class Utils {
     * Returns whether the SDK is the KeyLimePie release or later.
     */
    public static boolean isKeyLimePieOrLater() {
        return Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2;
        // 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);
    }