diff options
author | 2009-08-07 19:46:55 -0700 | |
---|---|---|
committer | 2009-08-13 18:03:41 -0700 | |
commit | 3263841911dc3dbbf4ffe26d2f046e38a1896f72 (patch) | |
tree | 3e1e4f33904ea933c48976a80ec9e0365d75a479 /src/com/android/inputmethod/latin/BinaryDictionary.java | |
parent | f115088924ae24d78b468c52a9bb10dc3ae6aae0 (diff) | |
download | latinime-3263841911dc3dbbf4ffe26d2f046e38a1896f72.tar.gz latinime-3263841911dc3dbbf4ffe26d2f046e38a1896f72.tar.xz latinime-3263841911dc3dbbf4ffe26d2f046e38a1896f72.zip |
Some performance optimizations.
Makes the user/contacts dictionary lookup faster. This is necessary because
there's more in these dictionaries now and it's written in Java.
Fix an auto-caps issue when moving the cursor. And do it a little lazily.
Fixed a bug that was causing user dictionary words to get a much
higher weightage than the main dictionary.
Diffstat (limited to 'src/com/android/inputmethod/latin/BinaryDictionary.java')
-rw-r--r-- | src/com/android/inputmethod/latin/BinaryDictionary.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/com/android/inputmethod/latin/BinaryDictionary.java b/src/com/android/inputmethod/latin/BinaryDictionary.java index 836c8034c..e7470a8fc 100644 --- a/src/com/android/inputmethod/latin/BinaryDictionary.java +++ b/src/com/android/inputmethod/latin/BinaryDictionary.java @@ -66,8 +66,6 @@ public class BinaryDictionary extends Dictionary { private native int getSuggestionsNative(int dict, int[] inputCodes, int codesSize, char[] outputChars, int[] frequencies, int maxWordLength, int maxWords, int maxAlternatives, int skipPos); - private native void setParamsNative(int typedLetterMultiplier, - int fullWordMultiplier); private final void loadDictionary(Context context, int resId) { AssetManager am = context.getResources().getAssets(); |