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

Commit 84f75c86 authored by Sam Blitzstein's avatar Sam Blitzstein
Browse files

Use the correct version code check for K.

Bug: 11151451
Change-Id: I190d33b06263e15157ea457d6ab76dc4fe5e497a
(cherry picked from commit 4e7b1b22)
parent 1bac111b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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) {