diff options
author | 2013-01-18 05:39:18 +0000 | |
---|---|---|
committer | 2013-01-18 05:39:18 +0000 | |
commit | 5a6b4f953eb036c2d3e42316d0d62045686d2b30 (patch) | |
tree | 4b0362cd3beb5132105efa4f84f1dabb654d8f9c /java/src/com/android/inputmethod/latin/UserBinaryDictionary.java | |
parent | 345ef6762700cdb0fca25aa54b22ef83aaaac0ab (diff) | |
parent | 96845ecff62ac5a1131ce3eb8e6a06d3298dd984 (diff) | |
download | latinime-5a6b4f953eb036c2d3e42316d0d62045686d2b30.tar.gz latinime-5a6b4f953eb036c2d3e42316d0d62045686d2b30.tar.xz latinime-5a6b4f953eb036c2d3e42316d0d62045686d2b30.zip |
Merge "Insert into user dict in lower case if auto-caps (D2)"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/UserBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/UserBinaryDictionary.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java b/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java index a16784985..0d5bde623 100644 --- a/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java @@ -216,17 +216,13 @@ public class UserBinaryDictionary extends ExpandableBinaryDictionary { * * @param word the word to add. If the word is capitalized, then the dictionary will * recognize it as a capitalized word when searched. - * @param frequency the frequency of occurrence of the word. A frequency of 255 is considered - * the highest. - * @TODO use a higher or float range for frequency */ - public synchronized void addWordToUserDictionary(final String word, final int frequency) { + public synchronized void addWordToUserDictionary(final String word) { // TODO: do something for the UI. With the following, any sufficiently long word will // look like it will go to the user dictionary but it won't. // Safeguard against adding long words. Can cause stack overflow. if (word.length() >= MAX_WORD_LENGTH) return; - // TODO: Add an argument to the intent to specify the frequency. Intent intent = new Intent(ACTION_USER_DICTIONARY_INSERT); intent.putExtra(Words.WORD, word); intent.putExtra(Words.LOCALE, mLocale); |