diff options
| author | Tarandeep Singh <tarandeep@google.com> | 2019-09-03 18:41:39 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-09-03 18:41:39 -0700 |
| commit | 7baee5c357e89c2edbe3ea302f4f40bfe330fa8e (patch) | |
| tree | 1875f751319f4481059ad31e50205bd0bf3b2e2b /core/java | |
| parent | a78ea5e51f7387c864a3cbe4963ccf0d18d486d3 (diff) | |
| parent | bfca446d1ef517a0423abab6ab684a533624fad6 (diff) | |
Merge "Skip updateCursorAnchorInfo when matrix is null" into qt-qpr1-dev am: 79243ed6c6
am: bfca446d1e
Change-Id: I6fc0dc17fea95def12ecc0e2e0090d0dc6cd9f87
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index d302c2b08217..032af1c5c7b5 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -707,9 +707,10 @@ public final class InputMethodManager { if (mBindSequence != bindSequence) { return; } - if (matrixValues == null) { - // That this app is unbound from the parent ActivityView. In this case, - // calling updateCursorAnchorInfo() isn't safe. Only clear the matrix. + if (matrixValues == null || mActivityViewToScreenMatrix == null) { + // Either InputBoundResult#mActivityViewToScreenMatrixValues is null + // OR this app is unbound from the parent ActivityView. In this case, + // calling updateCursorAnchorInfo() isn't safe. Only clear the matrix. mActivityViewToScreenMatrix = null; return; } |
