Properly list maxSdkVersion as an incompatible reason
This commit is contained in:
parent
09444b0181
commit
a936b5d070
@ -85,11 +85,14 @@ public class CompatibilityChecker extends Compatibility {
|
||||
|
||||
List<String> incompatibleReasons = new ArrayList<>();
|
||||
|
||||
if (!hasApi(apk.minSdkVersion) || !upToApi(apk.maxSdkVersion)) {
|
||||
incompatibleReasons.add(
|
||||
context.getResources().getString(
|
||||
if (!hasApi(apk.minSdkVersion)) {
|
||||
incompatibleReasons.add(context.getString(
|
||||
R.string.minsdk_or_later,
|
||||
Utils.getAndroidVersionName(apk.minSdkVersion)));
|
||||
} else if (!upToApi(apk.maxSdkVersion)) {
|
||||
incompatibleReasons.add(context.getString(
|
||||
R.string.up_to_maxsdk,
|
||||
Utils.getAndroidVersionName(apk.maxSdkVersion)));
|
||||
}
|
||||
|
||||
if (apk.features != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user