diff options
author | 2013-01-17 21:41:47 -0800 | |
---|---|---|
committer | 2013-01-17 21:41:47 -0800 | |
commit | 22d271755ee06aa83a5cc421597095e9027831af (patch) | |
tree | a05f76082af22f8713dacb05bf94e12efa765a81 /java/src/com/android/inputmethod/latin/UserBinaryDictionary.java | |
parent | 4dc422aa51476bdfb2ad2d55bafb0d1b4ff39d5f (diff) | |
parent | 5a6b4f953eb036c2d3e42316d0d62045686d2b30 (diff) | |
download | latinime-22d271755ee06aa83a5cc421597095e9027831af.tar.gz latinime-22d271755ee06aa83a5cc421597095e9027831af.tar.xz latinime-22d271755ee06aa83a5cc421597095e9027831af.zip |
am 5a6b4f95: Merge "Insert into user dict in lower case if auto-caps (D2)"
* commit '5a6b4f953eb036c2d3e42316d0d62045686d2b30':
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); |