* commit '8d0d236394548be4e2302a03960ce4ee363a5483': Make sure to obtain the IC before requesting CursorAnchorInfo
This commit is contained in:
commit
af5c2b24e7
1 changed files with 8 additions and 2 deletions
|
@ -924,8 +924,14 @@ public final class RichInputConnection {
|
|||
*/
|
||||
public boolean requestUpdateCursorAnchorInfo(final boolean enableMonitor,
|
||||
final boolean requestImmediateCallback) {
|
||||
final boolean scheduled = InputConnectionCompatUtils.requestUpdateCursorAnchorInfo(mIC,
|
||||
enableMonitor, requestImmediateCallback);
|
||||
mIC = mParent.getCurrentInputConnection();
|
||||
final boolean scheduled;
|
||||
if (null != mIC) {
|
||||
scheduled = InputConnectionCompatUtils.requestUpdateCursorAnchorInfo(mIC,
|
||||
enableMonitor, requestImmediateCallback);
|
||||
} else {
|
||||
scheduled = false;
|
||||
}
|
||||
mCursorAnchorInfoMonitorEnabled = (scheduled && enableMonitor);
|
||||
return scheduled;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue