From 6164771e2ba0e32976594ccaac29e062e545f802 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 31 May 2017 07:55:03 +0200 Subject: [PATCH] Default no clear on reload --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 2 +- app/src/main/res/xml-v14/preferences.xml | 2 +- app/src/main/res/xml-v21/preferences.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index 37e281d0..b8926131 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -462,7 +462,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS private void reload() { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSinkhole.this); - boolean clear = prefs.getBoolean("clear_onreload", true); + boolean clear = prefs.getBoolean("clear_onreload", false); if (state != State.enforcing) { if (state != State.none) { diff --git a/app/src/main/res/xml-v14/preferences.xml b/app/src/main/res/xml-v14/preferences.xml index 3322f014..05694aa0 100644 --- a/app/src/main/res/xml-v14/preferences.xml +++ b/app/src/main/res/xml-v14/preferences.xml @@ -164,7 +164,7 @@ android:summary="@string/summary_filter" android:title="@string/setting_filter"/> diff --git a/app/src/main/res/xml-v21/preferences.xml b/app/src/main/res/xml-v21/preferences.xml index 2e96f161..06483b43 100644 --- a/app/src/main/res/xml-v21/preferences.xml +++ b/app/src/main/res/xml-v21/preferences.xml @@ -164,7 +164,7 @@ android:summary="@string/summary_filter" android:title="@string/setting_filter"/>