Use the simple auto-correction status (B2)
Change-Id: I9d2f053b6f7bad20fc6afe5f5086a965e5014a5c
This commit is contained in:
parent
70852c91dc
commit
0a59ac2ba8
1 changed files with 2 additions and 2 deletions
|
@ -1662,7 +1662,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
}
|
}
|
||||||
|
|
||||||
private CharSequence getTextWithUnderline(final CharSequence text) {
|
private CharSequence getTextWithUnderline(final CharSequence text) {
|
||||||
return mComposingStateManager.isAutoCorrectionIndicatorOn()
|
return mIsAutoCorrectionIndicatorOn
|
||||||
? SuggestionSpanUtils.getTextWithAutoCorrectionIndicatorUnderline(this, text)
|
? SuggestionSpanUtils.getTextWithAutoCorrectionIndicatorUnderline(this, text)
|
||||||
: text;
|
: text;
|
||||||
}
|
}
|
||||||
|
@ -1740,7 +1740,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
if (ic != null) {
|
if (ic != null) {
|
||||||
final boolean oldAutoCorrectionIndicator =
|
final boolean oldAutoCorrectionIndicator =
|
||||||
mComposingStateManager.isAutoCorrectionIndicatorOn();
|
mComposingStateManager.isAutoCorrectionIndicatorOn();
|
||||||
if (oldAutoCorrectionIndicator != newAutoCorrectionIndicator) {
|
if (mIsAutoCorrectionIndicatorOn != newAutoCorrectionIndicator) {
|
||||||
mComposingStateManager.setAutoCorrectionIndicatorOn(newAutoCorrectionIndicator);
|
mComposingStateManager.setAutoCorrectionIndicatorOn(newAutoCorrectionIndicator);
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "Flip the indicator. " + oldAutoCorrectionIndicator
|
Log.d(TAG, "Flip the indicator. " + oldAutoCorrectionIndicator
|
||||||
|
|
Loading…
Reference in a new issue