aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-25 02:35:47 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-25 02:35:47 -0800
commit5fa994856131a1a25cb0325f54dd51c91a8978bb (patch)
treef645a66fe0011c2a686050850d6852f6acfa027c /java/src/com/android/inputmethod/latin/LatinIME.java
parentd839c9c2cac39ff48a45774d76487f43b8024d5f (diff)
parentd9702a375ab35af58f517b75683595b17a224f35 (diff)
downloadlatinime-5fa994856131a1a25cb0325f54dd51c91a8978bb.tar.gz
latinime-5fa994856131a1a25cb0325f54dd51c91a8978bb.tar.xz
latinime-5fa994856131a1a25cb0325f54dd51c91a8978bb.zip
am d9702a37: Merge "Add a test for auto-correction."
* commit 'd9702a375ab35af58f517b75683595b17a224f35': 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.java5
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 =