removed references to checkbox holder in daily/todo items

This commit is contained in:
Darron Lumley 2015-12-18 17:16:35 +11:00 committed by Phillip Thelen
parent b5165752df
commit 20e8af1c97
3 changed files with 0 additions and 14 deletions

View file

@ -26,7 +26,6 @@
android:layout_height="match_parent"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/checkBoxHolder"
android:layout_width="@dimen/button_width"
android:layout_height="match_parent"
app:backgroundColor="@{daily.isDisplayedActive(offset) ? daily.getLightTaskColor : @color/task_gray}">

View file

@ -24,7 +24,6 @@
android:layout_height="match_parent"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/checkBoxHolder"
android:layout_width="@dimen/button_width"
android:layout_height="match_parent"
app:backgroundColor="@{todo.completed ? @color/task_gray : todo.getLightTaskColor}">

View file

@ -446,16 +446,6 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
}
}
}
@NonNull
protected View.OnClickListener checkboxHolderClickListener() {
return new View.OnClickListener() {
@Override
public void onClick(View v) {
checkbox.setChecked(!checkbox.isChecked());
}
};
}
}
public class DailyViewHolder extends ChecklistedViewHolder {
@ -466,7 +456,6 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
super(itemView);
binding = DataBindingUtil.bind(itemView);
checkboxHolder.setOnClickListener(checkboxHolderClickListener());
checkbox.setOnCheckedChangeListener(this);
binding.setOffset(dailyResetOffset);
}
@ -493,7 +482,6 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
public TodoViewHolder(View itemView) {
super(itemView);
checkboxHolder.setOnClickListener(checkboxHolderClickListener());
binding = DataBindingUtil.bind(itemView);
}