summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Ryan Mitchell <rtmitchell@google.com> 2020-11-15 22:11:51 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-11-15 22:11:51 +0000
commitc9acec654565a94deb8113ba7b7d4d49ced7f975 (patch)
tree4c5ed27d6ca977fdda4dc3cd49c81a15007ab9bf /libs/androidfw/ConfigDescription.cpp
parent4d92751539b6403dcddf6a73624c9bd280e36649 (diff)
parentcaff40cad36e4a5d3e5f836f09daf70a321f98c8 (diff)
Merge "Fix DominatorTree for locale and mcc/mnc config" am: 8f2f4e14de am: caff40cad3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481918 Change-Id: I69131cf7a123dba6210e270d7e1644def5e4398e
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
-rw-r--r--libs/androidfw/ConfigDescription.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/androidfw/ConfigDescription.cpp b/libs/androidfw/ConfigDescription.cpp
index 1f3a89edb8af..19ead9583eb2 100644
--- a/libs/androidfw/ConfigDescription.cpp
+++ b/libs/androidfw/ConfigDescription.cpp
@@ -887,13 +887,16 @@ bool ConfigDescription::Dominates(const ConfigDescription& o) const {
}
// Locale de-duping is not-trivial, disable for now (b/62409213).
- if (diff(o) & CONFIG_LOCALE) {
+ // We must also disable de-duping for all configuration qualifiers with precedence higher than
+ // locale (b/171892595)
+ if (diff(o) & (CONFIG_LOCALE | CONFIG_MCC | CONFIG_MNC)) {
return false;
}
if (*this == DefaultConfig()) {
return true;
}
+
return MatchWithDensity(o) && !o.MatchWithDensity(*this) &&
!isMoreSpecificThan(o) && !o.HasHigherPrecedenceThan(*this);
}