Rule UI improvements

This commit is contained in:
M66B
2019-01-17 21:25:22 +00:00
parent 5cacec0670
commit 699d1be7ec
8 changed files with 86 additions and 58 deletions

View File

@@ -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);
}