diff options
author | 2013-06-12 21:22:34 +0000 | |
---|---|---|
committer | 2013-06-12 21:22:34 +0000 | |
commit | e72d1a07b6c52e3bcc7f099c81a14dab2fadf459 (patch) | |
tree | cc3ac6c28960a3d5a2615c6da85c2c5dbf442355 /java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java | |
parent | 3d9ebf213cf795958bca1c036002eb657d1a8366 (diff) | |
parent | efd26bb3192722c2980098a6f36dff6006e8896a (diff) | |
download | latinime-e72d1a07b6c52e3bcc7f099c81a14dab2fadf459.tar.gz latinime-e72d1a07b6c52e3bcc7f099c81a14dab2fadf459.tar.xz latinime-e72d1a07b6c52e3bcc7f099c81a14dab2fadf459.zip |
Merge "Allow downloadable dictionaries in development builds"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java index 98eadcacb..272f36e4f 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java +++ b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java @@ -290,16 +290,12 @@ final class BinaryDictionaryGetter { final Context context) { final boolean hasDefaultWordList = DictionaryFactory.isDictionaryAvailable(context, locale); - // TODO: The development-only-diagnostic version is not supported by the Dictionary Pack - // Service yet - if (!ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { - // We need internet access to do the following. Only do this if the package actually - // has the permission. - if (context.checkCallingOrSelfPermission(android.Manifest.permission.INTERNET) - == PackageManager.PERMISSION_GRANTED) { - BinaryDictionaryFileDumper.cacheWordListsFromContentProvider(locale, context, - hasDefaultWordList); - } + // We need internet access to do the following. Only do this if the package actually + // has the permission. + if (context.checkCallingOrSelfPermission(android.Manifest.permission.INTERNET) + == PackageManager.PERMISSION_GRANTED) { + BinaryDictionaryFileDumper.cacheWordListsFromContentProvider(locale, context, + hasDefaultWordList); } final File[] cachedWordLists = getCachedWordLists(locale.toString(), context); final String mainDictId = DictionaryInfoUtils.getMainDictId(locale); |