commit | ac1a79bbc6550a5f84adf38eee34ab302856e309 | [log] [tgz] |
---|---|---|
author | Nikita Iashchenko <nikitai@google.com> | Thu Aug 22 20:33:45 2019 +0100 |
committer | Nikita Iashchenko <nikitai@google.com> | Thu Oct 03 15:52:47 2019 +0100 |
tree | d69b0304e667beeccf3da39e564d4992344134af | |
parent | 5fbddd27fc75c212af1fe57edf72e76ef6ca1a3a [diff] |
Improve toLanguageTag()'s "und" locale handling This CL is improves handling of und locale: instead of hacky replacement of underscore with dash to avoid adding likely subtags to canonicalized language tag it now calls uloc_addLikelySubtags() only for language tags that need that. Bug: 125283072 Test: mmm -j frameworks/minikin/tests/unittest && \ adb sync data && \ adb shell /data/nativetest/minikin_tests/minikin_tests Change-Id: Ida08f908a207f9b9ef344677e0b6298c6824de0c