mirror of https://github.com/M66B/NetGuard.git
Reset apply as well
This commit is contained in:
parent
74c5cd7268
commit
7544f3cdc7
|
@ -496,6 +496,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> 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<AdapterRule.ViewHolder> 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
|
||||
|
|
Loading…
Reference in New Issue