Loading java/src/com/android/inputmethod/latin/LatinIME.java +3 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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) { Loading Loading @@ -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); Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +3 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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) { Loading Loading @@ -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); Loading