Use the simple auto-correction status (B2)

Change-Id: I9d2f053b6f7bad20fc6afe5f5086a965e5014a5c
main
Jean Chalard 2012-03-07 15:31:22 +09:00
parent 70852c91dc
commit 0a59ac2ba8
1 changed files with 2 additions and 2 deletions

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