OSDN Git Service

Allow apps to hide the soft keyboard even in a transient state.
authorSeigo Nonaka <nona@google.com>
Wed, 10 Jun 2015 06:31:20 +0000 (15:31 +0900)
committerSeigo Nonaka <nona@google.com>
Wed, 17 Jun 2015 16:48:09 +0000 (01:48 +0900)
commitec928651cc3e72c2e8ff6102a6c037c5119617ee
tree0ae388c6cb16e77cb3425fa9d26f88908e1c6ef5
parent42376d6482804ac240fc84a75e50e7fae478b744
Allow apps to hide the soft keyboard even in a transient state.

Since I69b88989ae4d0fe056e9ab8d67d0a955dd10e6d9, we have
asserted that the following test cases can pass with CTS.

    assertTrue(imm.showSoftInput(
            view, InputMethodManager.SHOW_IMPLICIT));
    assertTrue(imm.hideSoftInputFromWindow(token, 0));

This CL fixes the test failure caused by
I33dc6278fd892f26e56352722bf9449b8b102030 in the above
CTS case.

Note that the test failure occurs only when the application
tries to close the software keyboard during IMMS#mInputShown
and IMMS#mImeWindowVis are in a transiently inconsistent
state.

Bug: 21727232
Change-Id: I195a9f9644583cb1172f48801e87273ad8def850
services/core/java/com/android/server/InputMethodManagerService.java