Fix app compat dashboard from settings app
Fix an issue due to recent changes tha made the settings app accidentally categorize non sdk gated changes as targetSdk > -1. The recent changes made target sdk changes have a '>=' condition instead of strictly '>', so address that issue as well. Bug: 172043600 Test: open App Compatibility Changes option in Developer Options Change-Id: Ic5ee203c5a82ac982164304e3ae399947a39e058
This commit is contained in:
committed by
Andrei-Valentin Onea
parent
7e65d7f6fc
commit
b0a6dd680e
@@ -149,7 +149,7 @@ public class PlatformCompatDashboard extends DashboardFragment {
|
||||
final List<CompatibilityChangeInfo> disabledChanges = new ArrayList<>();
|
||||
final Map<Integer, List<CompatibilityChangeInfo>> targetSdkChanges = new TreeMap<>();
|
||||
for (CompatibilityChangeInfo change : mChanges) {
|
||||
if (change.getEnableSinceTargetSdk() != 0) {
|
||||
if (change.getEnableSinceTargetSdk() > 0) {
|
||||
List<CompatibilityChangeInfo> sdkChanges;
|
||||
if (!targetSdkChanges.containsKey(change.getEnableSinceTargetSdk())) {
|
||||
sdkChanges = new ArrayList<>();
|
||||
|
Reference in New Issue
Block a user