Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80d7d324 authored by Jean Chalard's avatar Jean Chalard Committed by Android Git Automerger
Browse files

am d2116eb2: am 7d34763e: am fac619a3: Merge "Don\'t restrict reset composing...

am d2116eb2: am 7d34763e: am fac619a3: Merge "Don\'t restrict reset composing state to non-identical setText" into jb-mr1.1-dev

* commit 'd2116eb2':
  Don't restrict reset composing state to non-identical setText
parents 1b909c28 d2116eb2
Loading
Loading
Loading
Loading
+10 −14
Original line number Diff line number Diff line
@@ -710,11 +710,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
        updateFullscreenMode();
        mApplicationSpecifiedCompletions = null;

        if (isDifferentTextField || selectionChanged) {
            // If the selection changed, we reset the input state. Essentially, we come here with
            // 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.
        // The app calling setText() has the effect of clearing the composing
        // span, so we should reset our state unconditionally, even if restarting is true.
        mEnteredText = null;
        resetComposingState(true /* alsoResetLastComposedWord */);
        mDeleteCount = 0;
@@ -725,7 +722,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
            // otherwise it will clear the suggestion strip.
            setPunctuationSuggestions();
        }
        }

        mConnection.resetCachesUponCursorMove(editorInfo.initialSelStart);