mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Use the simple auto-correction status (B2)"
This commit is contained in:
commit
d8447ec353
@ -1713,7 +1713,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;
|
||||||
}
|
}
|
||||||
@ -1791,7 +1791,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…
x
Reference in New Issue
Block a user