Merge "Auto finish composing text when A11yIME commits text" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
54a8dee16d
@@ -1065,7 +1065,11 @@ public final class RemoteInputConnectionImpl extends IInputContext.Stub {
|
|||||||
Log.w(TAG, "commitText on inactive InputConnection");
|
Log.w(TAG, "commitText on inactive InputConnection");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// A11yIME's commitText() also triggers finishComposingText() automatically.
|
||||||
|
ic.beginBatchEdit();
|
||||||
|
ic.finishComposingText();
|
||||||
ic.commitText(text, newCursorPosition, textAttribute);
|
ic.commitText(text, newCursorPosition, textAttribute);
|
||||||
|
ic.endBatchEdit();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user