OSDN Git Service

Fix a bug that IMS#mShowInputFlags is never updated.
authorYohei Yukawa <yukawa@google.com>
Mon, 4 Apr 2016 05:50:11 +0000 (22:50 -0700)
committerYohei Yukawa <yukawa@google.com>
Mon, 4 Apr 2016 05:50:11 +0000 (22:50 -0700)
commitef5b4657a8b03b33d6c4087e0ced33606fcf05f3
tree7ff2a3c749ba1a9211d41fa24da4fa4a39b58213
parent958f00f396e1e7bf2edc4aa4e27fe11fa533b44a
Fix a bug that IMS#mShowInputFlags is never updated.

As a preparation to fix bug 26985193, this CL fixes a bug that
IMS#ShowInputFlags is never updated.  As a result,
IMS#onConfigurationChanged() has always called
IMS#onShowInputRequested() with specifying 0 to flags parameter, which
is wrong.

With this CL, we can assume that IMS#mShowInputFlags keeps tracking the
last value when it should do.  Also, we can remove IMS#mShowInputForced
since it is now determined by IMS#mShowInputFlags.

Bug: 26985193
Change-Id: Ieff634b69ce941d78ffe208547f7edd19ea28643
core/java/android/inputmethodservice/InputMethodService.java