diff options
Diffstat (limited to 'vpndialogxposed/src/main/java/de/blinkt')
-rw-r--r-- | vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java b/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java index 199f23fb..638ca2ba 100644 --- a/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java +++ b/vpndialogxposed/src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java @@ -56,8 +56,10 @@ public class AllowedVPNsChooser extends ListActivity { private void saveAllowedApps(Set<String> allowedApps) { SharedPreferences prefs = getPreferences(MODE_WORLD_READABLE); - prefs.edit().putStringSet(ALLOWED_APPS,allowedApps) - .putInt("random",new Random().nextInt()).apply(); + SharedPreferences.Editor prefeditor = prefs.edit(); + prefeditor.putStringSet(ALLOWED_APPS,allowedApps); + prefeditor.putInt("random",new Random().nextInt()); + prefeditor.apply(); } |