Loading java/src/com/android/inputmethod/latin/LatinIME.java +10 −14 Original line number Original line Diff line number Diff line Loading @@ -704,11 +704,8 @@ 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 // state if the app set the text to something else, but keep it if it set a suggestion // or something. mEnteredText = null; mEnteredText = null; resetComposingState(true /* alsoResetLastComposedWord */); resetComposingState(true /* alsoResetLastComposedWord */); mDeleteCount = 0; mDeleteCount = 0; Loading @@ -719,7 +716,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // 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 Loading
java/src/com/android/inputmethod/latin/LatinIME.java +10 −14 Original line number Original line Diff line number Diff line Loading @@ -704,11 +704,8 @@ 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 // state if the app set the text to something else, but keep it if it set a suggestion // or something. mEnteredText = null; mEnteredText = null; resetComposingState(true /* alsoResetLastComposedWord */); resetComposingState(true /* alsoResetLastComposedWord */); mDeleteCount = 0; mDeleteCount = 0; Loading @@ -719,7 +716,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // 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