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

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

* commit '8d0d2363':
  Make sure to obtain the IC before requesting CursorAnchorInfo
parents cb7d1a63 8d0d2363
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