mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
fixes #214
This commit is contained in:
parent
45daa97cc7
commit
85879219be
1 changed files with 6 additions and 1 deletions
|
|
@ -378,13 +378,18 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
|
|||
|
||||
@Override
|
||||
public void bindHolder(Task habitItem, int position) {
|
||||
boolean itemChanged = Item != null && !Item.getId().equals(habitItem.getId());
|
||||
|
||||
super.bindHolder(habitItem, position);
|
||||
Boolean isClickable = false;
|
||||
if (habitItem.getChecklist() != null && habitItem.getChecklist().size() > 0) {
|
||||
isClickable = true;
|
||||
}
|
||||
checklistIndicatorWrapper.setClickable(isClickable);
|
||||
this.setDisplayChecklist(false);
|
||||
|
||||
if(itemChanged) {
|
||||
this.setDisplayChecklist(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setDisplayChecklist(Boolean displayChecklist) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue