Bug 1304688 - Pre: add Versions.preN to AppConstants r?sebastian draft
authorAndrzej Hunt <ahunt@mozilla.com>
Tue, 27 Sep 2016 09:06:26 -0700
changeset 419646 1fff255c73deb68e4a4e3f8c83bd0d33d3132cc6
parent 419553 afe79b010d138c608f5490572e3303647b452d74
child 419647 f2a579781865686c1a64036832fe02fd7617c7db
push id30976
push userahunt@mozilla.com
push dateFri, 30 Sep 2016 17:39:51 +0000
reviewerssebastian
bugs1304688
milestone52.0a1
Bug 1304688 - Pre: add Versions.preN to AppConstants r?sebastian MozReview-Commit-ID: Awh9db04xW
mobile/android/base/AppConstants.java.in
--- a/mobile/android/base/AppConstants.java.in
+++ b/mobile/android/base/AppConstants.java.in
@@ -67,16 +67,17 @@ public class AppConstants {
          * If our MAX_SDK_VERSION is lower than ICS, we must not be an ICS device.
          * Otherwise, we need a range check.
          */
         public static final boolean preMarshmallow = MAX_SDK_VERSION < 23 || (MIN_SDK_VERSION < 23 && Build.VERSION.SDK_INT < 23);
         public static final boolean preLollipop = MAX_SDK_VERSION < 21 || (MIN_SDK_VERSION < 21 && Build.VERSION.SDK_INT < 21);
         public static final boolean preJBMR2 = MAX_SDK_VERSION < 18 || (MIN_SDK_VERSION < 18 && Build.VERSION.SDK_INT < 18);
         public static final boolean preJBMR1 = MAX_SDK_VERSION < 17 || (MIN_SDK_VERSION < 17 && Build.VERSION.SDK_INT < 17);
         public static final boolean preJB = MAX_SDK_VERSION < 16 || (MIN_SDK_VERSION < 16 && Build.VERSION.SDK_INT < 16);
+        public static final boolean preN = MAX_SDK_VERSION < 24 || (MIN_SDK_VERSION < 24 && Build.VERSION.SDK_INT < 24);
     }
 
     /**
      * The name of the Java class that represents the android application.
      */
     public static final String MOZ_ANDROID_APPLICATION_CLASS = "@MOZ_ANDROID_APPLICATION_CLASS@";
     /**
      * The name of the Java class that launches the browser activity.