aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestHelper.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-10-06 00:42:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-06 00:42:08 -0700
commitc5d0415f3efaaeb9137d739226061c99da6cc7f4 (patch)
tree2d248c13e5e1cf917f7b2d8048f3d0eeadfa58fa /tests/src/com/android/inputmethod/latin/SuggestHelper.java
parent5a55e7f34959453afac0c3a791ed3bc9b14dccf6 (diff)
parent3458d61807a03ed7fb8571488ee0fcbff39e07f8 (diff)
downloadlatinime-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.java8
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();