kopia lustrzana https://github.com/ryukoposting/Signal-Android
Set onClick to entire row, not just the checkbox.
rodzic
b9361112b6
commit
d755e1e29e
|
@ -121,6 +121,7 @@ class ContactFieldAdapter extends RecyclerView.Adapter<ContactFieldAdapter.Conta
|
|||
checkBox.setOnCheckedChangeListener(null);
|
||||
checkBox.setChecked(field.isSelected());
|
||||
checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> field.setSelected(isChecked));
|
||||
super.itemView.setOnClickListener(v -> checkBox.toggle());
|
||||
} else {
|
||||
checkBox.setVisibility(View.GONE);
|
||||
checkBox.setOnCheckedChangeListener(null);
|
||||
|
|
Ładowanie…
Reference in New Issue