summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Ryan Mitchell <rtmitchell@google.com> 2020-11-15 22:29:51 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-11-15 22:29:51 +0000
commit518d35c01746dc634434bccaf00111da208a4e1c (patch)
tree2d395251eb408bec3bcf1281b7ae5fa6be78cdc5 /libs/androidfw/ConfigDescription.cpp
parent4268bece0c374048dd14f9426c9c6c2b623f6cfe (diff)
parentc9acec654565a94deb8113ba7b7d4d49ced7f975 (diff)
Merge "Fix DominatorTree for locale and mcc/mnc config" am: 8f2f4e14de am: caff40cad3 am: c9acec6545
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481918 Change-Id: I680147cd3a77d96d09c13a2f802bd8e4e7124669
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);
}