Use the simple auto-correction status (B2)

Change-Id: I9d2f053b6f7bad20fc6afe5f5086a965e5014a5c
This commit is contained in:
Jean Chalard 2012-03-07 15:31:22 +09:00
parent 70852c91dc
commit 0a59ac2ba8

View file

@ -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