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

Commit 02716083 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android Git Automerger
Browse files

am 5eebaddc: Merge "Dismiss "Add to dictionary" hint with non-special char event" into lmp-dev

* commit '5eebaddc':
  Dismiss "Add to dictionary" hint with non-special char event
parents b65a1e46 5eebaddc
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -751,6 +751,13 @@ public final class InputLogic {
            final InputTransaction inputTransaction,
            // TODO: remove this argument
            final LatinIME.UIHandler handler) {
        // In case the "add to dictionary" hint was still displayed.
        // TODO: Do we really need to check if we have composing text here?
        if (!mWordComposer.isComposingWord() &&
                mSuggestionStripViewAccessor.isShowingAddToDictionaryHint()) {
            mSuggestionStripViewAccessor.dismissAddToDictionaryHint();
        }

        final int codePoint = event.mCodePoint;
        mSpaceState = SpaceState.NONE;
        if (inputTransaction.mSettingsValues.isWordSeparator(codePoint)
@@ -846,8 +853,6 @@ public final class InputLogic {
            } else {
                sendKeyCodePoint(settingsValues, codePoint);
            }
            // In case the "add to dictionary" hint was still displayed.
            mSuggestionStripViewAccessor.dismissAddToDictionaryHint();
        }
        inputTransaction.setRequiresUpdateSuggestions();
    }