History log of /frameworks/base/core/java/com/android/internal/app/LocaleHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ad4dccf8851ba7adb5fa7b85736bd6e2cb21896 27-May-2016 Roozbeh Pournader <roozbeh@google.com> Support ellipsizing LocaleHelper.getDisplayLocaleList()

Add an extra parameter to LocaleHelper.getDisplayLocaleList()
specifying the maximum number of locales to output, as callers
probably won't need the whole list.

Bug: 28872122
Change-Id: Ief136bc1af2841e76ed4d8e65932a9a30821eae3
/frameworks/base/core/java/com/android/internal/app/LocaleHelper.java
23cbe85610f780134cc77dd4a54732a22ed6e86e 18-May-2016 Yohei Yukawa <yukawa@google.com> Move LocaleList to avoid layering violation.

Since LocaleList needs to depend on android.os.Parcelable, we cannot let
that class belong to "android.util" package, which causes layering
violation.

Bug: 28819696
Change-Id: Ia8de2ee9df3dd0a42b1fe84574439519b680fe18
/frameworks/base/core/java/com/android/internal/app/LocaleHelper.java
1b2e7adc8821a6de2cfc2ce23b0c555c1bb7f1fa 08-Apr-2016 Mihai Nita <mnita@google.com> Use DisplayNameWithDialect only for some locales

Although DisplayNameWithDialect seems to return friendlier, more
"casual" names (e.g. "American English"), the result was inconsistent,
and (at times) debatable. And since this setting affects not only
the language of the translation, but a locale, names like "Flemish"
kind of lost the whole "locale / location" idea.

So we revert to use DisplayName for all but a few selected locales
(that we verified are better with the "dialect" form).

Bug: 27704583
Change-Id: I587081da1293cccac3cdabcd188a9b8160c233ea
/frameworks/base/core/java/com/android/internal/app/LocaleHelper.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/LocaleHelper.java
4de75e9fa22e5937ff7f9ad206bb71ac95beb881 30-Mar-2016 Mihai Nita <mnita@google.com> Ignore stopwords in the Arabic locale sort

Bug: 26277596
Change-Id: I7cf36d67313de8ee89d12b0289a15bccb9dd9ecc
/frameworks/base/core/java/com/android/internal/app/LocaleHelper.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/LocaleHelper.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/LocaleHelper.java
fc881a25b42003aa11650df25a997f5eb386e44a 28-Jan-2016 Mihai Nita <mnita@google.com> Create the locale list with ICU4J's ListFormatter

The list of user locales showing under Language & input -- Language
used a hard-coded comma as separator.
Changing that code to use the ICU locale-aware formatter.

Bug: 26848487
Change-Id: I36975da3a3770df8abaf7e3987b188f2e912f378
/frameworks/base/core/java/com/android/internal/app/LocaleHelper.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/LocaleHelper.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/LocaleHelper.java