aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestHelper.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-10-06 15:57:43 +0900
committerJean Chalard <jchalard@google.com>2011-10-06 16:05:21 +0900
commit3458d61807a03ed7fb8571488ee0fcbff39e07f8 (patch)
tree2d248c13e5e1cf917f7b2d8048f3d0eeadfa58fa /tests/src/com/android/inputmethod/latin/SuggestHelper.java
parentafb907650338e66dbdccaf891e13d334b73bcc7f (diff)
downloadlatinime-3458d61807a03ed7fb8571488ee0fcbff39e07f8.tar.gz
latinime-3458d61807a03ed7fb8571488ee0fcbff39e07f8.tar.xz
latinime-3458d61807a03ed7fb8571488ee0fcbff39e07f8.zip
Make the whitelist an instanciable class.
This goes together with I6b8628b9acc32449e4147a2a754b222fbb76c754 or it will break the build Bug: 5402436 Change-Id: I07c6266b713773a8de80bb22afdd4c566261f78a
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();