History log of /frameworks/base/core/java/com/android/internal/app/LocaleStore.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e977b0ae59bbd7af0ccdf56db6aa0a53c5e6414d 18-Jun-2016 Roozbeh Pournader <roozbeh@google.com> Mark Serbian in Latin script as non-localized [DO NOT MERGE]

Serbian in Latin script is only partially localized in Android N. We
should not show it as localized in either Setup Wizard or Settings.

Bug: 29460424
Change-Id: I6829a89c49c1b5e8768b1527daa3aa9508deb491
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java
43af6366f2aad8c0c0a8ae1367215961ccd75c29 19-Apr-2016 Mihai Nita <mnita@google.com> Framework: change the TTS text to use the current locale

Google TTS currently does not support language auto-switching.
Also, not all languages are available in TTS at all times.
This means that TTS cannot properly handle text in other languages / scripts
than the current language.
Languages with different scripts would not be read at all, and the others
would be read with "bad pronunciation", to the point of being unrecognizable.

This change is not a full fix, but makes things slightly better by using
the default locale for the contentDescription in the language / region lists.

This might be a bit unsettling, as the label will not match the sound.
The label will show "Deutsch" or "Русский" and text-to-speech will say "German"
or "Russian" (for English UI), or "Allemand" or "Russe" (if the UI is French).
Might also say nothing, if the current UI language has no text-to-speech engine.

But this is the best we can do, and better that what we get if we do nothing.

Bug: 28087937
Change-Id: I7390a063708647e022be29161c2f2bedc19896ae
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java
86235d497007ad17ddec7e659fb0e0c36b010745 01-Apr-2016 Mihai Nita <mnita@google.com> Fix suggestions in the language selector

The current implementation makes the decision based on the
list of locales translated in frameworks/base

It will break if we remove country from the resource locale IDs
(e.g. fr-FR => fr)
It also offers no flexibility in case we want to suggest a country
based on other criteria.

Bug: 27378061
Change-Id: I3d8514e8abff83a4c98c5658533738611cf12576
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java
f1f39cf1936df2d28133e43390f72f3dbb40ffc8 29-Feb-2016 Mihai Nita <mnita@google.com> Show locale in region list even if suggested in language list

Even if English US is suggested, when choosing English I should
still see US in the country list.
Because now the same LocaleInfo object (from cache) can be present
in both lists (language & region), it means that the label should
depend on the context.
We also need to explicitely disable suggestions in the region list.

Bug: 26590073
Bug: 26939203
Change-Id: Ib1cbad9d26a8b183bf462505335bef04193e82f4
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java
c67b64fda4324d366da18014791406f32f48d025 05-Feb-2016 Mihai Nita <mnita@google.com> Flag all the locales of the default region as suggested

This was done by the SetupWizard to suggest the default locale
before the SIM was detected.
It is also handy for devices without SIM (tablets).

Bug: 26784450
Bug: 26882058
Bug: 26939651
Change-Id: Ia1d3b2ef4756121cf6ca13d5d7280215df060a8f
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java
137b96e3a41edc19a53f7218ef3e53adbfcfd340 25-Jan-2016 Mihai Nita <mnita@google.com> Visibility changes to allow access by SetupWizard

Also adding a method that is called when the SIM info changes,
to update sugestions.
This is a must for SetupWizard, where the language selection can
be displayed before the SIM is fully initialized.
Might also use it to update suggested locals when SIM status changes
(SIM card replaced, or the user crosses border to a different country)

Bug: 25797548
Change-Id: I1a68b4e71046caa3b2810b37c74be5eeb00a255c
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java
1808ff7cde452d4831dcfbc6b99afc57f66daedf 12-Jan-2016 Mihai Nita <mnita@google.com> Re-implements the locales selection with suggestions and search.

This replaces the initial implementation of a two-step locale selection
with a more advanced version, which does suggestions, search, removes
locales that already exist in the user preferences.

Bug: 25800339
Bug: 26414919
Bug: 26278049
Bug: 26275094
Bug: 26266914
Bug: 26266743
Bug: 26266712
Bug: 26266605
Bug: 26266490
Bug: 26266021

Change-Id: I88944c86e4cae5eaa00b7ae4855887ab11989253
/frameworks/base/core/java/com/android/internal/app/LocaleStore.java