Skip to content
Snippets Groups Projects
Commit 8d0d2363 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android Git Automerger
Browse files

am acce1aa5: Make sure to obtain the IC before requesting CursorAnchorInfo

* commit 'acce1aa5':
  Make sure to obtain the IC before requesting CursorAnchorInfo
parents 68a2a69a acce1aa5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment