OSDN Git Service

Don't give IME focus to temporarily detached View.
authorYohei Yukawa <yukawa@google.com>
Wed, 30 Mar 2016 02:06:36 +0000 (19:06 -0700)
committerYohei Yukawa <yukawa@google.com>
Tue, 5 Apr 2016 00:05:26 +0000 (00:05 +0000)
commita4ed0cfcb6885beeb52f701bfc64c393b668f7ba
tree68574e2771100d9b85c926e18d642fc5b498aff5
parent807c3a828b97e6d619f2dfdfde2f97efc873f6fe
Don't give IME focus to temporarily detached View.

The root cause of Bug 18920212 is that when AutoCompleteTextView tries
to show completion window upon text input,
InputMethodManager#focusInLocked() can be called with a View that is
temporarily detached, which should be ignored.

Bug: 18920212
Change-Id: Ia79bbd8468f768d546354382b47b39dd31ef7bb5
core/java/android/view/inputmethod/InputMethodManager.java