Assume Android P will be API 28

- refs: #1742
This commit is contained in:
Connor Tumbleson 2018-03-12 15:34:32 -04:00
parent 1713495ea7
commit 7621fdb79c
2 changed files with 5 additions and 1 deletions

View File

@ -617,13 +617,15 @@ final public class AndrolibResources {
}
private int mapSdkShorthandToVersion(String sdkVersion) {
switch (sdkVersion) {
switch (sdkVersion.toUpperCase()) {
case "M":
return ResConfigFlags.SDK_MNC;
case "N":
return ResConfigFlags.SDK_NOUGAT;
case "O":
return ResConfigFlags.SDK_OREO;
case "P":
return ResConfigFlags.SDK_P;
default:
return Integer.parseInt(sdkVersion);
}

View File

@ -535,6 +535,8 @@ public class ResConfigFlags {
public final static byte SDK_NOUGAT = 24;
public final static byte SDK_NOUGAT_MR1 = 25;
public final static byte SDK_OREO = 26;
public final static byte SDK_OREO_MR1 = 27;
public final static byte SDK_P = 28;
public final static byte ORIENTATION_ANY = 0;
public final static byte ORIENTATION_PORT = 1;