Reset apply as well

This commit is contained in:
M66B 2016-02-21 09:53:08 +01:00
parent 74c5cd7268
commit 7544f3cdc7
1 changed files with 2 additions and 1 deletions

View File

@ -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