diff options
author | 2011-04-20 16:52:07 +0900 | |
---|---|---|
committer | 2011-04-20 17:31:59 +0900 | |
commit | c899038eee5c01d520a2707cca01ee093a674d05 (patch) | |
tree | c656553da022c51fcb10e6b149928a167a3b2ea2 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | b1ae5d84b1bcb0e8c18e80a4ca13a81d9c9c2772 (diff) | |
download | latinime-c899038eee5c01d520a2707cca01ee093a674d05.tar.gz latinime-c899038eee5c01d520a2707cca01ee093a674d05.tar.xz latinime-c899038eee5c01d520a2707cca01ee093a674d05.zip |
Move language-specific keyboard setting to resources.
Some flag settings used to be stored in a keyboard layout extravalue setting. This
change:
- Introduces the capability of setting such specific flags in values/config.xml
- Retains the ability to use extravalues (for layout-specific settings), though
there is no more any such setting at the moment.
- Fixes a bug where loading a dictionary from outside does not initialize the flags.
- Moves Flag to another class.
Note: this needs I705ec68c to avoid breaking the build
Change-Id: Ia7703aae3215b06c0b3cb792821649806e8998c1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 0cc9d4198..cd7f71c2a 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -112,10 +112,10 @@ public class Suggest implements Dictionary.WordCallback { dictionaryResId)); } - /* package for test */ Suggest(File dictionary, long startOffset, long length, - BinaryDictionary.Flag[] flagArray) { - init(null, BinaryDictionary.initDictionary(dictionary, startOffset, length, DIC_MAIN, - flagArray)); + /* package for test */ Suggest(Context context, File dictionary, long startOffset, long length, + Flag[] flagArray) { + init(null, BinaryDictionary.initDictionary(context, dictionary, startOffset, length, + DIC_MAIN, flagArray)); } private void init(Context context, BinaryDictionary mainDict) { |