0f457540aaec9b6fe35301239aaff9209e192ce4 |
|
18-Jul-2017 |
Keyvan Amiri <keyvana@google.com> |
Fixed localization formatting for picker widgets The data/time separators were picked from the string resources ("/", ":"). This however could create issues in terms of localization since different locales could have different separators defined for their time and date formats. Switched to using DateFormat to extract a locale-based string pattern for both date and time. Also defined a new way of specifying the separators to cover the general case of different locales having different set of separators between the time/date fields based on the current date/time format. Also refactored different chunks of TimePicker. Bug: 63715369 Test: DatePickerTest#testExtractSeparatorsForDifferentLocales, TimePickerTest#testExtractSeparatorsForDifferentLocales Also manual inspection of date/time widgets for several locales. Change-Id: I6cb934b4ddc4870a5f103d54ffb80ddd7bc6f23b
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/picker/TimePickerTest.java
|