History log of /frameworks/base/core/java/com/android/internal/app/SuggestedLocaleAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3f01530a684755dbebeb15bbdb70d0b0cd11dbd0 14-Apr-2017 Roozbeh Pournader <roozbeh@google.com> Support overriding display locale for SuggestedLocaleAdapter

The method now accepts a locale for overriding the labels
"Suggested", "All regions", etc.

Fixes: 31257462
Test: Manual
Change-Id: I6e8c95d8d3e7b05a284b171f2cf2819d32e53d8d
/frameworks/base/core/java/com/android/internal/app/SuggestedLocaleAdapter.java
543e45babeb200a3586bbbd8ffd0b6e2f3f0687c 02-Sep-2016 Mihai Nita <mnita@google.com> Changed the header of the region selection list to "All regions"

Bug: 31257462
Change-Id: I3112b5700e23674d2c48c7ca96a2f1a17a5f15db
/frameworks/base/core/java/com/android/internal/app/SuggestedLocaleAdapter.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/SuggestedLocaleAdapter.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/SuggestedLocaleAdapter.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/SuggestedLocaleAdapter.java
502141d50bbd188a37b59f2ea9fa794a296f7247 23-Feb-2016 Mihai Nita <mnita@google.com> Removed warning icons and use friendlier locale names

* Removed warning icons in locale list (b/26710677)
* Use getDisplayNameWithDialect() instead of getDisplayName()
for the locale names (b/27066642)
* Set proper locale for the language labels (b/27130516)
* Fixed build warning in LocaleHelper (b/27148053)

Bug: 26710677
Bug: 27066642
Bug: 27130516
Bug: 27148053
Change-Id: I149a3675262b286c8b740d2ad5b02f4df31316ec
/frameworks/base/core/java/com/android/internal/app/SuggestedLocaleAdapter.java
24215ecadce5f44de33959b4f512482f39ac4c92 29-Jan-2016 Mihai Nita <mnita@google.com> Fix: RTL sublocales need to display RTL

When the langage selected in the first step is right-to-left the
localized region names should also be rendered right-to-left,
regardless of the UI language of the system itself.
We only need this to happen for the sub-locale because all labels
are localized in the same language (the parent one), so it is all
consistent, not the mixture we have in the language selection.

Bug: 26278041
Change-Id: I54c4306763458be691a1ba0c2bc2dba613beb8c5
/frameworks/base/core/java/com/android/internal/app/SuggestedLocaleAdapter.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/SuggestedLocaleAdapter.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/SuggestedLocaleAdapter.java