From 7544f3cdc77d039821763c57fe3b6390f78d3c83 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 21 Feb 2016 09:53:08 +0100 Subject: [PATCH] Reset apply as well --- app/src/main/java/eu/faircode/netguard/AdapterRule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/AdapterRule.java b/app/src/main/java/eu/faircode/netguard/AdapterRule.java index 3564a451..e93d7e4e 100644 --- a/app/src/main/java/eu/faircode/netguard/AdapterRule.java +++ b/app/src/main/java/eu/faircode/netguard/AdapterRule.java @@ -496,6 +496,7 @@ public class AdapterRule extends RecyclerView.Adapter im Util.areYouSure(view.getContext(), R.string.msg_clear_rules, new Util.DoubtListener() { @Override public void onSure() { + holder.cbApply.setChecked(true); holder.cbWifi.setChecked(rule.wifi_default); holder.cbOther.setChecked(rule.other_default); holder.cbScreenWifi.setChecked(rule.screen_wifi_default); @@ -589,7 +590,7 @@ public class AdapterRule extends RecyclerView.Adapter im // Show disable access notifications setting holder.cbNotify.setOnCheckedChangeListener(null); - holder.cbNotify.setEnabled(prefs.getBoolean("notify_access", false)); + holder.cbNotify.setEnabled(prefs.getBoolean("notify_access", false) && rule.apply); holder.cbNotify.setChecked(rule.notify); holder.cbNotify.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override