diff options
| author | 2018-09-20 00:35:25 +0000 | |
|---|---|---|
| committer | 2018-09-20 00:35:25 +0000 | |
| commit | 7bd18423f6ec297a115f758f6cc773de82341f5b (patch) | |
| tree | e2237e704aa0d3e2d17b3753a64c2d4b2285e3b2 | |
| parent | 903dad812e4ce230fff9f81750090c2fd259f232 (diff) | |
| parent | dff365ef4dc61239fac70953b631e92972a9f41f (diff) | |
Merge "Set InputMethoMananger#mCurRootView to null when window dismissed"
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index b93afdf3a090..bca2e117a8a1 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -1421,6 +1421,10 @@ public final class InputMethodManager { mServedView.getWindowToken() == appWindowToken) { finishInputLocked(); } + if (mCurRootView != null && + mCurRootView.getWindowToken() == appWindowToken) { + mCurRootView = null; + } } } |