summaryrefslogtreecommitdiff
path: root/core/java/android/util/LocaleUtil.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #7173351 API REVIEW: android.util.LocaleUtilFabrice Di Meglio2012-09-181-84/+0
| | | | Change-Id: I08fd491eff714059e9ec874fadebe7eb556c34d5
* Make public more RTL APIsFabrice Di Meglio2012-03-121-5/+2
| | | | | | - LocaleUtil will help developers to get the layout direction from a Locale Change-Id: I184ebcc9c208464b20f0454e7a915426640c74f0
* Fix bug #5217606 LocaleUtils constants TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE ↵Fabrice Di Meglio2012-02-281-18/+9
| | | | | | | | and TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE should be renamed - replace them by the View constants Change-Id: I7c2bf0213319247d3db369b6f7c36771fdf3e509
* Add textDirection="locale"Fabrice Di Meglio2012-01-061-2/+0
| | | | | | | - also fix and update unit tests - see bug #5242821 Change-Id: I29e029bab8ade336a430f9a2a5073caaf11b8dda
* Fix bug #5199577 TextView with android:password="true" is showing the "dots" ↵Fabrice Di Meglio2011-08-251-19/+11
| | | | | | | | | | on the left even if the password chars are RTL - force TextView to LOCALE text heuristic when in "password" mode - remove TEXT_LAYOUT_DIRECTION_UNKNOWN_DO_NOT_USE - LocaleUtils.getLayoutDirectionFromLocale() returns "LTR" is locale is NULL or ROOT Change-Id: I182c46aaf2d73c8b18967fffa230bfabec91ed06
* Update getLayoutDirectionFromLocale() for using ICUFabrice Di Meglio2011-06-161-11/+2
| | | | | | | - now relying on ICU.getScript() and ICU.addLikelySubtags() for getting the locale script - clean unit tests imports Change-Id: Icdc45fa78490d1e2dde0e83bca0feea8aa205cdf
* Fix crash determining direction of invalid localeKenny Root2011-06-161-2/+3
| | | | | | | | The layoutlib is used in the SDK which might not have a default Locale, so the language string will be some kind of junk. This causes a crash in the new LocaleUtils Change-Id: I24e5115c56e39d394dcf89ec6cff609525b3c73e
* Introduce LocalUtil and getLayoutDirectionFromLocale() now use likelySubtagsFabrice Di Meglio2011-06-151-0/+114
- move code from Configuration to LocaleUtil - move unit tests Change-Id: Ic14b0131894a0c5618f00d4acb3edb0daadefe01