diff options
author | 2013-01-16 22:07:43 +0900 | |
---|---|---|
committer | 2013-01-17 20:38:52 +0900 | |
commit | 96845ecff62ac5a1131ce3eb8e6a06d3298dd984 (patch) | |
tree | 9ac9ae7ae3459cf3119b5604723f0362f50865ee /java/src/com/android/inputmethod/latin/UserBinaryDictionary.java | |
parent | c665cbee7f136ea3cf334262f8dc1e7621f2004f (diff) | |
download | latinime-96845ecff62ac5a1131ce3eb8e6a06d3298dd984.tar.gz latinime-96845ecff62ac5a1131ce3eb8e6a06d3298dd984.tar.xz latinime-96845ecff62ac5a1131ce3eb8e6a06d3298dd984.zip |
Insert into user dict in lower case if auto-caps (D2)
Also recapitalize afterwards if the word has been changed.
Bug: 7972124
Change-Id: I9306580bb4ed0ffa80cc4559ce1abcd2034d1905
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); |