diff options
author | 2013-09-13 04:45:28 -0700 | |
---|---|---|
committer | 2013-09-13 04:45:28 -0700 | |
commit | 3a3dab3ead6029d69d43fc51f4efe5c3e0c2be33 (patch) | |
tree | da6aad615fd429d15bad6276a1227bb912aae18c /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | 408ab9a3d9b0fd1cc52406128c0017e19e57baa1 (diff) | |
parent | 41aaff6cdf6cc1edb41ec222695bb6985e646d23 (diff) | |
download | latinime-3a3dab3ead6029d69d43fc51f4efe5c3e0c2be33.tar.gz latinime-3a3dab3ead6029d69d43fc51f4efe5c3e0c2be33.tar.xz latinime-3a3dab3ead6029d69d43fc51f4efe5c3e0c2be33.zip |
am 41aaff6c: Merge "[AC4] Add native methods necessary for auto-commit"
* commit '41aaff6cdf6cc1edb41ec222695bb6985e646d23':
[AC4] Add native methods necessary 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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java index 8a3a88438..fa79f5af7 100644 --- a/java/src/com/android/inputmethod/latin/Dictionary.java +++ b/java/src/com/android/inputmethod/latin/Dictionary.java @@ -137,7 +137,10 @@ public abstract class Dictionary { } /** - * Whether we think this suggestion should trigger an auto-commit. + * Whether we think this suggestion should trigger an auto-commit. prevWord is the word + * before the suggestion, so that we can use n-gram frequencies. + * @param candidate The candidate suggestion, in whole (not only the first part). + * @return whether we should auto-commit or not. */ 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 |