am af5c2b24: am 8d0d2363: am acce1aa5: Make sure to obtain the IC before requesting CursorAnchorInfo
* commit 'af5c2b24e7a5226f19aa94c67268061cbc6ab060': Make sure to obtain the IC before requesting CursorAnchorInfomain
commit
eacc930638
|
@ -924,8 +924,14 @@ public final class RichInputConnection {
|
||||||
*/
|
*/
|
||||||
public boolean requestUpdateCursorAnchorInfo(final boolean enableMonitor,
|
public boolean requestUpdateCursorAnchorInfo(final boolean enableMonitor,
|
||||||
final boolean requestImmediateCallback) {
|
final boolean requestImmediateCallback) {
|
||||||
final boolean scheduled = InputConnectionCompatUtils.requestUpdateCursorAnchorInfo(mIC,
|
mIC = mParent.getCurrentInputConnection();
|
||||||
|
final boolean scheduled;
|
||||||
|
if (null != mIC) {
|
||||||
|
scheduled = InputConnectionCompatUtils.requestUpdateCursorAnchorInfo(mIC,
|
||||||
enableMonitor, requestImmediateCallback);
|
enableMonitor, requestImmediateCallback);
|
||||||
|
} else {
|
||||||
|
scheduled = false;
|
||||||
|
}
|
||||||
mCursorAnchorInfoMonitorEnabled = (scheduled && enableMonitor);
|
mCursorAnchorInfoMonitorEnabled = (scheduled && enableMonitor);
|
||||||
return scheduled;
|
return scheduled;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue