diff options
| author | Wale Ogunwale <ogunwale@google.com> | 2015-05-14 12:20:53 -0700 |
|---|---|---|
| committer | Wale Ogunwale <ogunwale@google.com> | 2015-05-14 12:25:24 -0700 |
| commit | 159c3d8a8b99c9a7c9d7cb3013a622fdf2c6c04a (patch) | |
| tree | 4792531571c2313600b8fcd06c38bf833ec37c0b /core/java/android/view/ViewRootImpl.java | |
| parent | dfdbc3a8918a698a69880816a59d9e5ca2ee185f (diff) | |
| download | frameworks_base-159c3d8a8b99c9a7c9d7cb3013a622fdf2c6c04a.zip frameworks_base-159c3d8a8b99c9a7c9d7cb3013a622fdf2c6c04a.tar.gz frameworks_base-159c3d8a8b99c9a7c9d7cb3013a622fdf2c6c04a.tar.bz2 | |
Revert "Update IME focus when the active view is losing the focus."
This reverts commit 97c381304207013fd95c7806df4dcca0c69006c0.
This causes issue with the right IME window getting focus.
Bug: 21144633
Change-Id: I4c75b6e7dd87c10f008444d2059164b52a8f4335
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 1cbd886..4f2a3fa 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -2015,6 +2015,7 @@ public final class ViewRootImpl implements ViewParent, mLastWasImTarget = imTarget; InputMethodManager imm = InputMethodManager.peekInstance(); if (imm != null && imTarget) { + imm.startGettingWindowFocus(mView); imm.onWindowFocus(mView, mView.findFocus(), mWindowAttributes.softInputMode, !mHasHadWindowFocus, mWindowAttributes.flags); @@ -3321,6 +3322,10 @@ public final class ViewRootImpl implements ViewParent, InputMethodManager imm = InputMethodManager.peekInstance(); if (mView != null) { + if (hasWindowFocus && imm != null && mLastWasImTarget && + !isInLocalFocusMode()) { + imm.startGettingWindowFocus(mView); + } mAttachInfo.mKeyDispatchState.reset(); mView.dispatchWindowFocusChanged(hasWindowFocus); mAttachInfo.mTreeObserver.dispatchOnWindowFocusChange(hasWindowFocus); |
