01f7e32cdf00e64181661c34a3190b70ad4c79af |
|
06-Apr-2017 |
Andrei Stingaceanu <stg@google.com> |
SupportLib - fetch locales * introduces LocaleListCompat which is in parity (API wise) with framework LocaleList * introduces LocaleListHelper which contains the LocaleList logic added after API24 * due to Locale being updated in the framework in API21 LocaleListHelper can not make use of Locale#forLanguageTag() and Locale#toLanguageTag() thus introduced LocaleHelper which contains simpleton implementations of the functions above * ported all non-parcelable tests from the framework with the mention that LocaleListCompatTest#testGetFirstMatch_oneChineseAsset and LocaleListCompatTest#testGetFirstMatch_serbianCyrillic only run for API24+ (due to to not having language tag full impl) Bug: 36097045 Test: ./gradlew support-compat:connectedCheck --info --daemon \ -Pandroid.testInstrumentationRunnerArguments.class=\ android.support.v4.os.LocaleListCompatTest Change-Id: I8555877fd261b647e1ae22fada72bebb434e9196
/frameworks/support/compat/java/android/support/v4/os/LocaleListInterface.java
|