aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Dictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-08-20 04:07:02 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-20 04:07:02 -0700
commitd619127d2f178a8b30a0dc668f69918b470c062d (patch)
tree804a9f904823244a2d00ac3a9a785a1d35ae6028 /java/src/com/android/inputmethod/latin/Dictionary.java
parentc972b602284b02cf1a3f82f72962e69ea59659f3 (diff)
parent2c7a3e0405b71101e5f4ce85ef9697036782c860 (diff)
downloadlatinime-d619127d2f178a8b30a0dc668f69918b470c062d.tar.gz
latinime-d619127d2f178a8b30a0dc668f69918b470c062d.tar.xz
latinime-d619127d2f178a8b30a0dc668f69918b470c062d.zip
am 2c7a3e04: Merge "[AC3] Start calling the methods for auto-commit."
* commit '2c7a3e0405b71101e5f4ce85ef9697036782c860': [AC3] Start calling the methods for auto-commit.
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/latin/Dictionary.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java
index a1d9a00e6..d9ded7ceb 100644
--- a/java/src/com/android/inputmethod/latin/Dictionary.java
+++ b/java/src/com/android/inputmethod/latin/Dictionary.java
@@ -134,6 +134,16 @@ public abstract class Dictionary {
}
/**
+ * Whether we think this suggestion should trigger an auto-commit.
+ */
+ public boolean shouldAutoCommit(final SuggestedWordInfo candidate) {
+ // If we don't have support for auto-commit, or if we don't know, we return false to
+ // avoid auto-committing stuff. Implementations of the Dictionary class that know to
+ // determine whether we should auto-commit will override this.
+ return false;
+ }
+
+ /**
* Not a true dictionary. A placeholder used to indicate suggestions that don't come from any
* real dictionary.
*/