aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-12 11:01:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-12 11:02:00 +0000
commitd24f93971292451c7a16456fecb8eff5deaa2c37 (patch)
tree1f76d05cddbe70ce199446c19e431a42e75719ba /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java
parentfb5869e9ff378d6834d0eaf970543a2f417c4103 (diff)
parent6a2a4b8e4d0dee1564e59632b07a131d55d949d8 (diff)
downloadlatinime-d24f93971292451c7a16456fecb8eff5deaa2c37.tar.gz
latinime-d24f93971292451c7a16456fecb8eff5deaa2c37.tar.xz
latinime-d24f93971292451c7a16456fecb8eff5deaa2c37.zip
Merge "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.java7
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);
}
}