diff options
author | 2012-01-25 02:33:39 -0800 | |
---|---|---|
committer | 2012-01-25 02:33:39 -0800 | |
commit | d9702a375ab35af58f517b75683595b17a224f35 (patch) | |
tree | f645a66fe0011c2a686050850d6852f6acfa027c /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | f9521c6f378e3f2aa13d9e382ae13708e3ae6317 (diff) | |
parent | 0bfe359ee42af9c4487ce56acf42c74a2510980d (diff) | |
download | latinime-d9702a375ab35af58f517b75683595b17a224f35.tar.gz latinime-d9702a375ab35af58f517b75683595b17a224f35.tar.xz latinime-d9702a375ab35af58f517b75683595b17a224f35.zip |
Merge "Add a test for auto-correction."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 31cbc4ee3..d59497d6a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1702,10 +1702,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar if (DEBUG) { Log.d(TAG, "Flip the indicator. " + oldAutoCorrectionIndicator + " -> " + newAutoCorrectionIndicator); - if (newAutoCorrectionIndicator + if (mComposingStateManager.isComposing() && newAutoCorrectionIndicator != mComposingStateManager.isAutoCorrectionIndicatorOn()) { - throw new RuntimeException("Couldn't flip the indicator! We are not " - + "composing a word right now."); + throw new RuntimeException("Couldn't flip the indicator!"); } } final CharSequence textWithUnderline = |