fix disabling automation

This commit is contained in:
Milos Kozak 2019-10-17 22:46:00 +02:00
parent c80f1b4851
commit 6a7cb2ac7b

View file

@ -82,8 +82,8 @@ class EventListAdapter extends RecyclerView.Adapter<EventListAdapter.ViewHolder>
}
// enabled event
holder.enabled.setOnCheckedChangeListener((buttonView, isChecked) -> {
event.setEnabled(isChecked);
holder.enabled.setOnClickListener(v -> {
event.setEnabled((holder.enabled.isChecked()));
RxBus.INSTANCE.send(new EventAutomationDataChanged());
});