aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/UserBinaryDictionary.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/UserBinaryDictionary.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 '')
-rw-r--r--java/src/com/android/inputmethod/latin/UserBinaryDictionary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java b/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java
index 0d5bde623..709dedd49 100644
--- a/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java
+++ b/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java
@@ -258,10 +258,10 @@ public class UserBinaryDictionary extends ExpandableBinaryDictionary {
final int adjustedFrequency = scaleFrequencyFromDefaultToLatinIme(frequency);
// Safeguard against adding really long words.
if (word.length() < MAX_WORD_LENGTH) {
- super.addWord(word, null, adjustedFrequency);
+ super.addWord(word, null, adjustedFrequency, false /* isNotAWord */);
}
if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) {
- super.addWord(shortcut, word, adjustedFrequency);
+ super.addWord(shortcut, word, adjustedFrequency, true /* isNotAWord */);
}
cursor.moveToNext();
}