Fixed cannot unselect when setUsing
This commit is contained in:
parent
db578bca8c
commit
de5574df45
@ -201,7 +201,7 @@ public class RulesFragment extends Fragment {
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (!Daedalus.getInstance().isServiceActivated()) {
|
if (!Daedalus.getInstance().isServiceActivated()) {
|
||||||
Rule rule = Rule.getRuleById(id);
|
Rule rule = Rule.getRuleById(id);
|
||||||
if (rule != null && !rule.isUsing()) {
|
if (rule != null) {
|
||||||
rule.setUsing(!v.isSelected());
|
rule.setUsing(!v.isSelected());
|
||||||
v.setSelected(!v.isSelected());
|
v.setSelected(!v.isSelected());
|
||||||
if (v.isSelected()) {
|
if (v.isSelected()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user