mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am acce1aa5
: Make sure to obtain the IC before requesting CursorAnchorInfo
* commit 'acce1aa59eac6816fe3ce1fcb014666fc71a40f1': Make sure to obtain the IC before requesting CursorAnchorInfo
This commit is contained in:
commit
8d0d236394
@ -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 New Issue
Block a user