diff options
author | 2009-12-18 13:39:18 -0800 | |
---|---|---|
committer | 2009-12-18 14:32:48 -0800 | |
commit | e8f1edefeb2375a253d742c7f95e8d91677c7073 (patch) | |
tree | 6b6024e11c187921615954e0c36e619ae41f737d /src/com/android/inputmethod/latin/BinaryDictionary.java | |
parent | 646ca037e733e52f300eac9bb266dc6b0328e5a2 (diff) | |
download | latinime-e8f1edefeb2375a253d742c7f95e8d91677c7073.tar.gz latinime-e8f1edefeb2375a253d742c7f95e8d91677c7073.tar.xz latinime-e8f1edefeb2375a253d742c7f95e8d91677c7073.zip |
Enable auto-correction only if there is a significant size main dictionary.
Added e-umlaut popup for Russian keyboard.
Added a French Canadian string resource but wont help until we add fr_CA to
the supported locales list.
Diffstat (limited to 'src/com/android/inputmethod/latin/BinaryDictionary.java')
-rw-r--r-- | src/com/android/inputmethod/latin/BinaryDictionary.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/inputmethod/latin/BinaryDictionary.java b/src/com/android/inputmethod/latin/BinaryDictionary.java index 36991845c..68d8b740c 100644 --- a/src/com/android/inputmethod/latin/BinaryDictionary.java +++ b/src/com/android/inputmethod/latin/BinaryDictionary.java @@ -35,6 +35,7 @@ public class BinaryDictionary extends Dictionary { private static final boolean ENABLE_MISSED_CHARACTERS = true; private int mNativeDict; + private int mDictLength; // This value is set from native code, don't change the name!!!! private int[] mInputCodes = new int[MAX_WORD_LENGTH * MAX_ALTERNATIVES]; private char[] mOutputChars = new char[MAX_WORD_LENGTH * MAX_WORDS]; private int[] mFrequencies = new int[MAX_WORDS]; @@ -125,6 +126,10 @@ public class BinaryDictionary extends Dictionary { return isValidWordNative(mNativeDict, chars, chars.length); } + public int getSize() { + return mDictLength; // This value is initialized on the call to openNative() + } + @Override public synchronized void close() { if (mNativeDict != 0) { |