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

Commit 0a59ac2b authored by Jean Chalard's avatar Jean Chalard
Browse files

Use the simple auto-correction status (B2)

Change-Id: I9d2f053b6f7bad20fc6afe5f5086a965e5014a5c
parent 70852c91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1662,7 +1662,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
    }

    private CharSequence getTextWithUnderline(final CharSequence text) {
        return mComposingStateManager.isAutoCorrectionIndicatorOn()
        return mIsAutoCorrectionIndicatorOn
                ? SuggestionSpanUtils.getTextWithAutoCorrectionIndicatorUnderline(this, text)
                : text;
    }
@@ -1740,7 +1740,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