parent
6c3b4135c2
commit
2dcce080d3
@ -78,7 +78,7 @@ class HabitCardListView(
|
|||||||
super.setAdapter(adapter)
|
super.setAdapter(adapter)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun createHabitCardView(): View {
|
fun createHabitCardView(): HabitCardView {
|
||||||
return cardViewFactory.create()
|
return cardViewFactory.create()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,6 +109,7 @@ class HabitCardListView(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun attachCardView(holder: HabitCardViewHolder) {
|
fun attachCardView(holder: HabitCardViewHolder) {
|
||||||
|
(holder.itemView as HabitCardView).dataOffset = dataOffset
|
||||||
attachedHolders.add(holder)
|
attachedHolders.add(holder)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package org.isoron.uhabits.activities.habits.list.views
|
package org.isoron.uhabits.activities.habits.list.views
|
||||||
|
|
||||||
import android.view.View
|
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
|
||||||
class HabitCardViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView)
|
class HabitCardViewHolder(itemView: HabitCardView) : RecyclerView.ViewHolder(itemView)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user