Merge "Skip updateCursorAnchorInfo when matrix is null" into qt-qpr1-dev
am: 79243ed6c6
Change-Id: I3ca0e84af8a084aba3dd87d22d57ce1debfc221a
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user