diff options
author | 2011-03-14 17:23:26 -0700 | |
---|---|---|
committer | 2011-03-16 19:46:19 -0700 | |
commit | 071f47140cec02197de5e163f45c77990b39457d (patch) | |
tree | d25fb012910d8c9b2321d91274be394d882e6471 /tests/src/com/android/inputmethod/latin/SuggestHelper.java | |
parent | 89ff5adc80260c8496f9cd09136caad4e6431f6c (diff) | |
download | latinime-071f47140cec02197de5e163f45c77990b39457d.tar.gz latinime-071f47140cec02197de5e163f45c77990b39457d.tar.xz latinime-071f47140cec02197de5e163f45c77990b39457d.zip |
Refactor BinaryDictionary a bit
This changes:
* Flag initialization code in BinaryDictionary to be more unit test friendly.
* Removing unnecessary class hierarchy of LatinIME inner class WordAlternatives.
* Formatting normalized score neatly.
Change-Id: I9f10c093d4f36258fe883cf3fb10cbbda2770497
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestHelper.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/SuggestHelper.java index 5930ea36e..aa7b76cc3 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestHelper.java +++ b/tests/src/com/android/inputmethod/latin/SuggestHelper.java @@ -42,7 +42,7 @@ public class SuggestHelper { protected SuggestHelper(Context context, File dictionaryPath, long startOffset, long length, KeyboardId keyboardId) { - mSuggest = new Suggest(dictionaryPath, startOffset, length); + mSuggest = new Suggest(dictionaryPath, startOffset, length, null); mKeyboard = new LatinKeyboard(context, keyboardId); mKeyDetector = new ProximityKeyDetector(); init(); |