summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/api/ExternalAppDatabase.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-04-07 14:05:05 +0200
committerArne Schwabe <arne@rfc2549.org>2013-04-07 14:05:05 +0200
commit195b0a10d96ad358d956381d8a0e423a8dd913c7 (patch)
tree5f62da8410bc08b50e8784ff94231cccbfcb8fb1 /src/de/blinkt/openvpn/api/ExternalAppDatabase.java
parent3b68ac89cd679f134681204e0d1bb40d6dbf7879 (diff)
Allow clearing of external apps
Diffstat (limited to 'src/de/blinkt/openvpn/api/ExternalAppDatabase.java')
-rw-r--r--src/de/blinkt/openvpn/api/ExternalAppDatabase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/api/ExternalAppDatabase.java b/src/de/blinkt/openvpn/api/ExternalAppDatabase.java
index ca348152..e640a13a 100644
--- a/src/de/blinkt/openvpn/api/ExternalAppDatabase.java
+++ b/src/de/blinkt/openvpn/api/ExternalAppDatabase.java
@@ -25,12 +25,12 @@ public class ExternalAppDatabase {
}
- Set<String> getExtAppList() {
+ public Set<String> getExtAppList() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);
Set<String> allowedapps = prefs.getStringSet(PREFERENCES_KEY, new HashSet<String>());
return allowedapps;
}
-
+
void addApp(String packagename)
{
Set<String> allowedapps = getExtAppList();
@@ -45,7 +45,7 @@ public class ExternalAppDatabase {
prefedit.apply();
}
- void clearAllApiApps() {
+ public void clearAllApiApps() {
saveExtAppList(new HashSet<String>());
}