Merge "Skip updateCursorAnchorInfo when matrix is null" into qt-qpr1-dev
am: 79243ed6c6
Change-Id: I319544ee792e1caa96d9dded7ede543ca4b28492
This commit is contained in:
@@ -707,9 +707,10 @@ public final class InputMethodManager {
|
|||||||
if (mBindSequence != bindSequence) {
|
if (mBindSequence != bindSequence) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (matrixValues == null) {
|
if (matrixValues == null || mActivityViewToScreenMatrix == null) {
|
||||||
// That this app is unbound from the parent ActivityView. In this case,
|
// Either InputBoundResult#mActivityViewToScreenMatrixValues is null
|
||||||
// calling updateCursorAnchorInfo() isn't safe. Only clear the matrix.
|
// OR this app is unbound from the parent ActivityView. In this case,
|
||||||
|
// calling updateCursorAnchorInfo() isn't safe. Only clear the matrix.
|
||||||
mActivityViewToScreenMatrix = null;
|
mActivityViewToScreenMatrix = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user