File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sample/src/main/java/com/alamkanak/weekview/sample/ui Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ package com.alamkanak.weekview.sample.ui
33import android.graphics.RectF
44import android.os.Bundle
55import androidx.appcompat.app.AppCompatActivity
6- import com.alamkanak.weekview.WeekViewEntity
6+ import com.alamkanak.weekview.WeekViewItem
77import com.alamkanak.weekview.jsr310.WeekViewPagingAdapterJsr310
88import com.alamkanak.weekview.sample.data.model.CalendarItem
9- import com.alamkanak.weekview.sample.data.model.toWeekViewEntity
9+ import com.alamkanak.weekview.sample.data.model.toWeekViewItem
1010import com.alamkanak.weekview.sample.databinding.ActivityCustomFontBinding
1111import com.alamkanak.weekview.sample.util.defaultDateTimeFormatter
1212import com.alamkanak.weekview.sample.util.genericViewModel
@@ -47,7 +47,7 @@ private class CustomFontActivityWeekViewAdapter(
4747 private val loadMoreHandler : (List <YearMonth >) -> Unit
4848) : WeekViewPagingAdapterJsr310<CalendarItem>() {
4949
50- override fun onCreateEntity (item : CalendarItem ): WeekViewEntity = item.toWeekViewEntity( )
50+ override fun onCreateItem (item : CalendarItem ): WeekViewItem = item.toWeekViewItem(context )
5151
5252 override fun onEventClick (data : CalendarItem , bounds : RectF ) {
5353 if (data is CalendarItem .Event ) {
You can’t perform that action at this time.
0 commit comments