aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ComposingStateManager.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-25 18:11:26 +0900
committerJean Chalard <jchalard@google.com>2012-01-25 19:29:40 +0900
commit0bfe359ee42af9c4487ce56acf42c74a2510980d (patch)
treea77fb4d1bf55d857612d69614286fd78c98e6e03 /java/src/com/android/inputmethod/latin/ComposingStateManager.java
parentaf4efd5a3ec32d7f1bf61978286f3a7602ce5609 (diff)
downloadlatinime-0bfe359ee42af9c4487ce56acf42c74a2510980d.tar.gz
latinime-0bfe359ee42af9c4487ce56acf42c74a2510980d.tar.xz
latinime-0bfe359ee42af9c4487ce56acf42c74a2510980d.zip
Add a test for auto-correction.
Fix two related subtle bugs: - Stop singling out fat-finger-only corrections for rejection when touch coordinates are not available. - Remove a racy check that would happen only in debug mode Change-Id: Ic904f9b27c091ca6b369052c4e65a630bff81257
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ComposingStateManager.java')
-rw-r--r--java/src/com/android/inputmethod/latin/ComposingStateManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ComposingStateManager.java b/java/src/com/android/inputmethod/latin/ComposingStateManager.java
index 8811f2023..27f509a29 100644
--- a/java/src/com/android/inputmethod/latin/ComposingStateManager.java
+++ b/java/src/com/android/inputmethod/latin/ComposingStateManager.java
@@ -53,6 +53,13 @@ public class ComposingStateManager {
}
}
+ public synchronized boolean isComposing() {
+ // TODO: use the composing flag in WordComposer instead of maintaining it
+ // here separately. Even better, do away with this class and manage the auto
+ // correction indicator in the same place as the suggestions.
+ return mIsComposing;
+ }
+
public synchronized boolean isAutoCorrectionIndicatorOn() {
return mAutoCorrectionIndicatorOn;
}