summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-10-19 01:54:20 +0200
committercyBerta <cyberta@riseup.net>2019-10-19 01:54:20 +0200
commit2b0c617a0b2e6f59db2f8dae4a117ceabcb7b977 (patch)
tree495cda7cf60f3e1616321352ecffcb85d2975b6a /app/src/main/java/se
parent2e51f351bd9581adfb0e0d6da2bc4255cc139ad2 (diff)
save preferences in LEAPpreferences
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java b/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java
index 44b2a45d..9eac7187 100644
--- a/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java
+++ b/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java
@@ -218,7 +218,7 @@ public class PreferenceHelper {
if (context == null) {
return false;
}
- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
+ SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
return preferences.getBoolean(USE_PLUGGABLE_TRANSPORTS, false);
}
@@ -226,7 +226,7 @@ public class PreferenceHelper {
if (context == null) {
return;
}
- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
+ SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
preferences.edit().putBoolean(USE_PLUGGABLE_TRANSPORTS, isEnabled).apply();
}
@@ -234,7 +234,7 @@ public class PreferenceHelper {
if (context == null) {
return;
}
- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
+ SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
preferences.edit().putBoolean(DEFAULT_SHARED_PREFS_BATTERY_SAVER, isEnabled).apply();
}
@@ -242,7 +242,7 @@ public class PreferenceHelper {
if (context == null) {
return false;
}
- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
+ SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
return preferences.getBoolean(DEFAULT_SHARED_PREFS_BATTERY_SAVER, false);
}