OSDN Git Service

Use LocaleList for implicitly enabled subtypes.
authorYohei Yukawa <yukawa@google.com>
Thu, 25 Feb 2016 02:27:04 +0000 (18:27 -0800)
committerYohei Yukawa <yukawa@google.com>
Thu, 25 Feb 2016 02:27:04 +0000 (18:27 -0800)
commite985c240e3feb62ea38d5b4e386be083ca0f215b
treea59eb463da3c29d7e8c01168d328a2faa8604a70
parent102ff0726dad764df741e41766d78fcfb829184a
Use LocaleList for implicitly enabled subtypes.

There are two major changes in this CL:

  1. Now IMMS resets its internal state whenever the system locale list
     is changed, rather than just checking the primary system locale.
  2. For software keyboard subtypes,
     InputMethodUtils#getImplicitlyApplicableSubtypesLocked() now takes
     the entire system locale list into account when determining what
     subtypes should be enabled by default when the user does not
     explicitly enable one or more subtypes.

Bug: 27129703
Change-Id: Iaf179d60c12b9a98b4f097e2449471c4184e049b
core/java/com/android/internal/inputmethod/InputMethodUtils.java
core/tests/coretests/src/com/android/internal/inputmethod/InputMethodUtilsTest.java
services/core/java/com/android/server/InputMethodManagerService.java