From d3aa9f835d7fd5f53d3a0da6778d46a7067bf074 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 30 Jun 2014 14:34:43 +0200 Subject: fix lint reported issues --HG-- rename : main/src/main/res/values-id/arrays.xml => main/src/main/res/values-in/arrays.xml rename : main/src/main/res/values-id/strings.xml => main/src/main/res/values-in/strings.xml --- .../src/main/java/de/blinkt/vpndialogxposed/AllowedVPNsChooser.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vpndialogxposed') 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 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(); } -- cgit v1.2.3