OSDN Git Service

Improve captalization in InputMethodSubtype#getDisplayName().
authorYohei Yukawa <yukawa@google.com>
Tue, 12 Apr 2016 05:09:57 +0000 (22:09 -0700)
committerYohei Yukawa <yukawa@google.com>
Wed, 13 Apr 2016 05:30:23 +0000 (05:30 +0000)
commite489baf96df2837a3a63b626d9023a4a8b322c28
tree4b850551d50dd1ba8f07077a1d93e832388cb0e8
parente544d408c06fe3e6bc3b237f718b56f03f079f29
Improve captalization in InputMethodSubtype#getDisplayName().

The goal of this CL is to enable
InputMethodSubtype#getLocaleDisplayName() to return more natural locale
display name in terms of capitalization rules.

The key idea here is to use LocaleDisplayNames#localeDisplayName() with
an appropriate DisplayContext.CAPITALIZATION_FOR_* parameter rather than
relying on Locale#getDisplayName().

Bug: 22845728
Change-Id: If105082ce703db7a86738455db7e9fb37f3c6fe8
core/java/android/view/inputmethod/InputMethodSubtype.java