diff options
author | 2013-08-20 11:05:22 +0000 | |
---|---|---|
committer | 2013-08-20 11:05:23 +0000 | |
commit | 2c7a3e0405b71101e5f4ce85ef9697036782c860 (patch) | |
tree | af86ff9d83c6af447c9afd7f422ceebde9182042 /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | c10d76f28c23fb068674699a63d563b3710b3cba (diff) | |
parent | 66a870cb538ab4a6da9b9e3134fcca79120c1c5f (diff) | |
download | latinime-2c7a3e0405b71101e5f4ce85ef9697036782c860.tar.gz latinime-2c7a3e0405b71101e5f4ce85ef9697036782c860.tar.xz latinime-2c7a3e0405b71101e5f4ce85ef9697036782c860.zip |
Merge "[AC3] Start calling the methods for auto-commit."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Dictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Dictionary.java | 10 |
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. */ |