Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3e55f0a3 authored by Maurice Lam's avatar Maurice Lam
Browse files

Allow fallback translated languages in MccTable

When choosing a fallback locale, if that locale is marked as
"translated" by LocaleStore, return that locale. This is true if a
locale itself has translations, or another locale with the same
language and script that is translated.

For example if the user inserts a Canadian SIM, previously it will
fallback to en-US since the system doesn't have translations for
en-CA. But since Android N users are allowed to select locale
English (Canada), which the framework will find suitable fallback
translation when resolving resources. So with this change, if the
user inserts a Canadian SIM, getLocaleFromMcc will now return en-CA.

Test: Run MccTableTest (via adb shell am instrument)
Bug: 31395257
Change-Id: I7f74bc2ed14efb9ce5594dbf563c76e2d5b353da
parent ff8c0eb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment