aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/latin/BinaryDictionary.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2009-08-07 19:46:55 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-08-13 18:03:41 -0700
commit3263841911dc3dbbf4ffe26d2f046e38a1896f72 (patch)
tree3e1e4f33904ea933c48976a80ec9e0365d75a479 /src/com/android/inputmethod/latin/BinaryDictionary.java
parentf115088924ae24d78b468c52a9bb10dc3ae6aae0 (diff)
downloadlatinime-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.java2
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();