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

Commit d8447ec3 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Use the simple auto-correction status (B2)"

parents fbe767ce 0a59ac2b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1713,7 +1713,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
    }

    private CharSequence getTextWithUnderline(final CharSequence text) {
        return mComposingStateManager.isAutoCorrectionIndicatorOn()
        return mIsAutoCorrectionIndicatorOn
                ? SuggestionSpanUtils.getTextWithAutoCorrectionIndicatorUnderline(this, text)
                : text;
    }
@@ -1791,7 +1791,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
        if (ic != null) {
            final boolean oldAutoCorrectionIndicator =
                    mComposingStateManager.isAutoCorrectionIndicatorOn();
            if (oldAutoCorrectionIndicator != newAutoCorrectionIndicator) {
            if (mIsAutoCorrectionIndicatorOn != newAutoCorrectionIndicator) {
                mComposingStateManager.setAutoCorrectionIndicatorOn(newAutoCorrectionIndicator);
                if (DEBUG) {
                    Log.d(TAG, "Flip the indicator. " + oldAutoCorrectionIndicator