diff options
author | 2011-10-06 00:42:08 -0700 | |
---|---|---|
committer | 2011-10-06 00:42:08 -0700 | |
commit | c5d0415f3efaaeb9137d739226061c99da6cc7f4 (patch) | |
tree | 2d248c13e5e1cf917f7b2d8048f3d0eeadfa58fa /tests/src/com/android/inputmethod/latin/SuggestHelper.java | |
parent | 5a55e7f34959453afac0c3a791ed3bc9b14dccf6 (diff) | |
parent | 3458d61807a03ed7fb8571488ee0fcbff39e07f8 (diff) | |
download | latinime-c5d0415f3efaaeb9137d739226061c99da6cc7f4.tar.gz latinime-c5d0415f3efaaeb9137d739226061c99da6cc7f4.tar.xz latinime-c5d0415f3efaaeb9137d739226061c99da6cc7f4.zip |
am 3458d618: Make the whitelist an instanciable class.
* commit '3458d61807a03ed7fb8571488ee0fcbff39e07f8':
Make the whitelist an instanciable class.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestHelper.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestHelper.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/SuggestHelper.java index 43b8cf65f..a08933539 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestHelper.java +++ b/tests/src/com/android/inputmethod/latin/SuggestHelper.java @@ -25,6 +25,7 @@ import com.android.inputmethod.keyboard.KeyboardId; import com.android.inputmethod.keyboard.LatinKeyboard; import java.io.File; +import java.util.Locale; public class SuggestHelper { protected final Suggest mSuggest; @@ -40,9 +41,10 @@ public class SuggestHelper { init(); } - protected SuggestHelper(Context context, File dictionaryPath, long startOffset, long length, - KeyboardId keyboardId) { - mSuggest = new Suggest(context, dictionaryPath, startOffset, length, null); + protected SuggestHelper(final Context context, final File dictionaryPath, + final long startOffset, final long length, final KeyboardId keyboardId, + final Locale locale) { + mSuggest = new Suggest(context, dictionaryPath, startOffset, length, null, locale); mKeyboard = new LatinKeyboard.Builder(context).load(keyboardId).build(); mKeyDetector = new KeyDetector(0); init(); |