Merge "Don't restrict reset composing state to non-identical setText" into jb-mr1.1-dev
This commit is contained in:
commit
fac619a34c
1 changed files with 10 additions and 14 deletions
|
@ -704,21 +704,17 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||||
updateFullscreenMode();
|
updateFullscreenMode();
|
||||||
mApplicationSpecifiedCompletions = null;
|
mApplicationSpecifiedCompletions = null;
|
||||||
|
|
||||||
if (isDifferentTextField || selectionChanged) {
|
// The app calling setText() has the effect of clearing the composing
|
||||||
// If the selection changed, we reset the input state. Essentially, we come here with
|
// span, so we should reset our state unconditionally, even if restarting is true.
|
||||||
// restarting == true when the app called setText() or similar. We should reset the
|
mEnteredText = null;
|
||||||
// state if the app set the text to something else, but keep it if it set a suggestion
|
resetComposingState(true /* alsoResetLastComposedWord */);
|
||||||
// or something.
|
mDeleteCount = 0;
|
||||||
mEnteredText = null;
|
mSpaceState = SPACE_STATE_NONE;
|
||||||
resetComposingState(true /* alsoResetLastComposedWord */);
|
|
||||||
mDeleteCount = 0;
|
|
||||||
mSpaceState = SPACE_STATE_NONE;
|
|
||||||
|
|
||||||
if (mSuggestionStripView != null) {
|
if (mSuggestionStripView != null) {
|
||||||
// This will set the punctuation suggestions if next word suggestion is off;
|
// This will set the punctuation suggestions if next word suggestion is off;
|
||||||
// otherwise it will clear the suggestion strip.
|
// otherwise it will clear the suggestion strip.
|
||||||
setPunctuationSuggestions();
|
setPunctuationSuggestions();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mConnection.resetCachesUponCursorMove(editorInfo.initialSelStart);
|
mConnection.resetCachesUponCursorMove(editorInfo.initialSelStart);
|
||||||
|
|
Loading…
Reference in a new issue