diff options
author | 2012-03-08 00:54:30 -0800 | |
---|---|---|
committer | 2012-03-08 00:54:30 -0800 | |
commit | fbe767cec55717716e2e7fa7f4e97468556d42d3 (patch) | |
tree | ce2a1a851ec86a5a2982baa2e236ddfd97a1989d /java/src | |
parent | bedb1d33f30936e9b16a2ee9ad6b94fda0d6193f (diff) | |
parent | 70852c91dc7209d0aaa875a2cb0f79739c7398e6 (diff) | |
download | latinime-fbe767cec55717716e2e7fa7f4e97468556d42d3.tar.gz latinime-fbe767cec55717716e2e7fa7f4e97468556d42d3.tar.xz latinime-fbe767cec55717716e2e7fa7f4e97468556d42d3.zip |
Merge "Remember auto-correction status simply (B1)"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 1858db949..60fcbcd46 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -240,6 +240,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar private final ComposingStateManager mComposingStateManager = ComposingStateManager.getInstance(); + private boolean mIsAutoCorrectionIndicatorOn; public final UIHandler mHandler = new UIHandler(this); @@ -1339,6 +1340,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // all inputs that do not result in a special state. Each character handling is then // free to override the state as they see fit. final int spaceState = mSpaceState; + if (!mWordComposer.isComposingWord()) mIsAutoCorrectionIndicatorOn = false; // TODO: Consolidate the double space timer, mLastKeyTime, and the space state. if (primaryCode != Keyboard.CODE_SPACE) { @@ -1796,6 +1798,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar + " -> " + newAutoCorrectionIndicator); } if (mWordComposer.isComposingWord()) { + mIsAutoCorrectionIndicatorOn = newAutoCorrectionIndicator; final CharSequence textWithUnderline = getTextWithUnderline(mWordComposer.getTypedWord()); ic.setComposingText(textWithUnderline, 1); |