diff options
| author | 2020-11-15 21:56:42 +0000 | |
|---|---|---|
| committer | 2020-11-15 21:56:42 +0000 | |
| commit | caff40cad36e4a5d3e5f836f09daf70a321f98c8 (patch) | |
| tree | cdab2fb44da8a1b01d172b8165ba044080389511 /libs/androidfw/ConfigDescription.cpp | |
| parent | 76bcea65508092cf60adb941f0a5c6f01621acf0 (diff) | |
| parent | 8f2f4e14deb73eee88094a40091c1cbaf2952d26 (diff) | |
Merge "Fix DominatorTree for locale and mcc/mnc config" am: 8f2f4e14de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481918
Change-Id: Iedf0fcdd24fa9ec3ff5ebb3124f9fd12acbbfeec
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
| -rw-r--r-- | libs/androidfw/ConfigDescription.cpp | 5 |
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); } |