Skip to content
Snippets Groups Projects
Commit 7540fd00 authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

Merge "Fix the locale of the flags in BinaryDicitonary for tests"

parents fc169c72 ae234abd
No related branches found
No related tags found
No related merge requests found
...@@ -145,10 +145,10 @@ public class DictionaryFactory { ...@@ -145,10 +145,10 @@ public class DictionaryFactory {
* @return the created dictionary, or null. * @return the created dictionary, or null.
*/ */
public static Dictionary createDictionaryForTest(Context context, File dictionary, public static Dictionary createDictionaryForTest(Context context, File dictionary,
long startOffset, long length, Flag[] flagArray) { long startOffset, long length, Flag[] flagArray, Locale locale) {
if (dictionary.isFile()) { if (dictionary.isFile()) {
return new BinaryDictionary(context, dictionary.getAbsolutePath(), startOffset, length, return new BinaryDictionary(context, dictionary.getAbsolutePath(), startOffset, length,
flagArray, null); flagArray, locale);
} else { } else {
Log.e(TAG, "Could not find the file. path=" + dictionary.getAbsolutePath()); Log.e(TAG, "Could not find the file. path=" + dictionary.getAbsolutePath());
return null; return null;
......
...@@ -112,7 +112,7 @@ public class Suggest implements Dictionary.WordCallback { ...@@ -112,7 +112,7 @@ public class Suggest implements Dictionary.WordCallback {
final long startOffset, final long length, final Flag[] flagArray, final long startOffset, final long length, final Flag[] flagArray,
final Locale locale) { final Locale locale) {
initSynchronously(context, DictionaryFactory.createDictionaryForTest(context, dictionary, initSynchronously(context, DictionaryFactory.createDictionaryForTest(context, dictionary,
startOffset, length, flagArray), locale); startOffset, length, flagArray, locale), locale);
} }
private void initWhitelistAndAutocorrectAndPool(final Context context, final Locale locale) { private void initWhitelistAndAutocorrectAndPool(final Context context, final Locale locale) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment