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

Commit 668a441b authored by Jean Chalard's avatar Jean Chalard Committed by Android Git Automerger
Browse files

am fdfc8ad2: Merge "Re-evaluate auto-caps earlier."

* commit 'fdfc8ad2':
  Re-evaluate auto-caps earlier.
parents 9c396a24 fdfc8ad2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1861,6 +1861,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            }
            mConnection.setComposingText(getTextWithUnderline(mWordComposer.getTypedWord()), 1);
            mHandler.postUpdateSuggestionStrip();
            if (!mWordComposer.isComposingWord()) {
                // If we just removed the last character, auto-caps mode may have changed so we
                // need to re-evaluate.
                mKeyboardSwitcher.updateShiftState();
            }
        } else {
            final SettingsValues currentSettings = mSettings.getCurrent();
            if (mLastComposedWord.canRevertCommit()) {
@@ -1948,6 +1953,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            if (currentSettings.isSuggestionsRequested(mDisplayOrientation)) {
                restartSuggestionsOnWordBeforeCursorIfAtEndOfWord();
            }
            // We just removed a character. We need to update the auto-caps state.
            mKeyboardSwitcher.updateShiftState();
        }
    }