OSDN Git Service

Clear the inset of previous IME when necessary.
authorYohei Yukawa <yukawa@google.com>
Thu, 28 May 2015 01:54:18 +0000 (18:54 -0700)
committerYohei Yukawa <yukawa@google.com>
Thu, 28 May 2015 22:52:49 +0000 (22:52 +0000)
commit2977eb7b6ce82309a1bb1ba4ab698f503cb0388a
treea79090ca1a9c9946cd52013100278eeff5b92dc8
parent80ce4ad644af507b20eeac3d2ecf937ef4abd2de
Clear the inset of previous IME when necessary.

In the following scenario, the system continues keeping the previous
IME's inset in the display until the new IME shows its window.
1. an IME shows its software keyboard with reporting non-empty inset.
2. the user switches to another IME, which does not show the software
   keyboard when it is selected (e.g., because the physical keyboard
   is connected.)

This CL tries to address above situation by introducing a new state
flag IMMS#mShouldClearInsetOfPreviousIme to clear the previous IME's
inset when necessary.

Bug: 15922840
Change-Id: Ib04967f39b2529251e4835c42e9f99dba2cf43f2
core/java/android/inputmethodservice/InputMethodService.java