diff options
author | 2013-04-12 04:04:52 -0700 | |
---|---|---|
committer | 2013-04-12 04:04:52 -0700 | |
commit | 68b392cc1208036df06ca2c94176b2bc3b5a690d (patch) | |
tree | 1f76d05cddbe70ce199446c19e431a42e75719ba /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | |
parent | 907a95c2f1f24b73736118ada0900228ad356734 (diff) | |
parent | d24f93971292451c7a16456fecb8eff5deaa2c37 (diff) | |
download | latinime-68b392cc1208036df06ca2c94176b2bc3b5a690d.tar.gz latinime-68b392cc1208036df06ca2c94176b2bc3b5a690d.tar.xz latinime-68b392cc1208036df06ca2c94176b2bc3b5a690d.zip |
am d24f9397: Merge "Make shortcut-only user dict entry non-words."
* commit 'd24f93971292451c7a16456fecb8eff5deaa2c37':
Make shortcut-only user dict entry non-words.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java index 97dc6a8ac..4b1975a00 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java @@ -176,14 +176,15 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { */ // TODO: Create "cache dictionary" to cache fresh words for frequently updated dictionaries, // considering performance regression. - protected void addWord(final String word, final String shortcutTarget, final int frequency) { + protected void addWord(final String word, final String shortcutTarget, final int frequency, + final boolean isNotAWord) { if (shortcutTarget == null) { - mFusionDictionary.add(word, frequency, null, false /* isNotAWord */); + mFusionDictionary.add(word, frequency, null, isNotAWord); } else { // TODO: Do this in the subclass, with this class taking an arraylist. final ArrayList<WeightedString> shortcutTargets = CollectionUtils.newArrayList(); shortcutTargets.add(new WeightedString(shortcutTarget, frequency)); - mFusionDictionary.add(word, frequency, shortcutTargets, false /* isNotAWord */); + mFusionDictionary.add(word, frequency, shortcutTargets, isNotAWord); } } |