Merge "Make getExtensionVersion a little more forward-proof" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ce316be991
@@ -62,7 +62,11 @@ public class SdkExtensions {
|
||||
if (sdk < VERSION_CODES.R) {
|
||||
throw new IllegalArgumentException(String.valueOf(sdk) + " does not have extensions");
|
||||
}
|
||||
return R_EXTENSION_INT;
|
||||
|
||||
if (sdk == VERSION_CODES.R) {
|
||||
return R_EXTENSION_INT;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user