For #357 - Adds some descriptive comments for temporary values
parent
4263f8ab3e
commit
007cefa281
|
@ -210,12 +210,16 @@ class HistoryAdapter(
|
||||||
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
|
||||||
when (holder) {
|
when (holder) {
|
||||||
is HistoryDeleteViewHolder -> holder.bind(mode)
|
is HistoryDeleteViewHolder -> holder.bind(mode)
|
||||||
|
// Temporarily hard code the header until
|
||||||
|
// we build out support for time based sections
|
||||||
is HistoryHeaderViewHolder -> holder.bind("Today")
|
is HistoryHeaderViewHolder -> holder.bind("Today")
|
||||||
is HistoryListItemViewHolder -> holder.bind(items[position - NUMBER_OF_SECTIONS], mode)
|
is HistoryListItemViewHolder -> holder.bind(items[position - NUMBER_OF_SECTIONS], mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
// Temporarily hard code the number of sections until
|
||||||
|
// we build out support for time based sections
|
||||||
private const val NUMBER_OF_SECTIONS = 2
|
private const val NUMBER_OF_SECTIONS = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue