aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-06-17 12:53:55 -0700
committerDan Zivkovic <zivkovic@google.com>2015-06-17 12:53:55 -0700
commit02c28453fca0c8feeba295ea51c28adeca7423c9 (patch)
tree4c2d97a2c4c29ff578a5ef5564d9537cce98fc21 /java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java
parent764a18cd9290bad4f541371f10b76d339725a1b8 (diff)
downloadlatinime-02c28453fca0c8feeba295ea51c28adeca7423c9.tar.gz
latinime-02c28453fca0c8feeba295ea51c28adeca7423c9.tar.xz
latinime-02c28453fca0c8feeba295ea51c28adeca7423c9.zip
Do not restrict downloads to WiFi networks.
Bug 21900337. Change-Id: I82991b492ea4c02a28a1ccc898d6f12741f1b793
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java b/java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java
index 3cd822a3c..3d0e29ed0 100644
--- a/java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java
+++ b/java/src/com/android/inputmethod/dictionarypack/CommonPreferences.java
@@ -22,8 +22,6 @@ import android.content.SharedPreferences;
public final class CommonPreferences {
private static final String COMMON_PREFERENCES_NAME = "LatinImeDictPrefs";
- public static final String PREF_FORCE_DOWNLOAD_DICT = "pref_key_force_download_dict";
-
public static SharedPreferences getCommonPreferences(final Context context) {
return context.getSharedPreferences(COMMON_PREFERENCES_NAME, 0);
}
@@ -39,14 +37,4 @@ public final class CommonPreferences {
editor.putBoolean(id, false);
editor.apply();
}
-
- public static boolean isForceDownloadDict(Context context) {
- return getCommonPreferences(context).getBoolean(PREF_FORCE_DOWNLOAD_DICT, false);
- }
-
- public static void setForceDownloadDict(Context context, boolean forceDownload) {
- SharedPreferences.Editor editor = getCommonPreferences(context).edit();
- editor.putBoolean(PREF_FORCE_DOWNLOAD_DICT, forceDownload);
- editor.apply();
- }
}