aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-06-12 21:22:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-06-12 21:22:34 +0000
commite72d1a07b6c52e3bcc7f099c81a14dab2fadf459 (patch)
treecc3ac6c28960a3d5a2615c6da85c2c5dbf442355 /java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
parent3d9ebf213cf795958bca1c036002eb657d1a8366 (diff)
parentefd26bb3192722c2980098a6f36dff6006e8896a (diff)
downloadlatinime-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.java16
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);