mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Rule UI improvements
This commit is contained in:
@@ -55,7 +55,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
|
||||
ViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
|
||||
this.itemView = itemView;
|
||||
this.itemView = itemView.findViewById(R.id.clItem);
|
||||
tvName = itemView.findViewById(R.id.tvName);
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
|
||||
}
|
||||
|
||||
private void bindTo(EntityRule rule) {
|
||||
itemView.setActivated(!rule.enabled);
|
||||
tvName.setText(rule.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user