/** * Updates internal representation of the text being edited and its selection and composition * properties. * * @param text The String contents of the field being edited. * @param selectionStart The character offset of the selection start, or the caret position if * there is no selection. * @param selectionEnd The character offset of the selection end, or the caret position if there * is no selection. * @param compositionStart The character offset of the composition start, or -1 if there is no * composition. * @param compositionEnd The character offset of the composition end, or -1 if there is no * selection. * @param isNonImeChange True when the update was caused by non-IME (e.g. Javascript). */ public void updateState( String text, int selectionStart, int selectionEnd, int compositionStart, int compositionEnd, boolean isNonImeChange) { if (mInputConnection == null) return; mInputConnection.updateState( text, selectionStart, selectionEnd, compositionStart, compositionEnd, isNonImeChange); }
@Override public void updateState( String text, int selectionStart, int selectionEnd, int compositionStart, int compositionEnd, boolean requiredAck) { mImeUpdateQueue.add( new TestImeState(text, selectionStart, selectionEnd, compositionStart, compositionEnd)); super.updateState( text, selectionStart, selectionEnd, compositionStart, compositionEnd, requiredAck); }