thellmund / Android-Week-View

Display highly customizable calendar views in your Android app
Apache License 2.0
188 stars 98 forks source link

Crash when click on event. #290

Closed Guiraudou closed 2 years ago

Guiraudou commented 2 years ago

Describe the bug Crash when click on event. java.lang.ClassCastException: [...]PlanningFragment$PlanningWeekViewAdapter cannot be cast to [...]MyEvent at [...]PlanningFragment$PlanningWeekViewAdapter.onEventClick(PlanningFragment.java:xxx)

Additional context

Guiraudou commented 2 years ago

I found the problem. In the onCreateEntity, I replace return new WeekViewEntity.Event.Builder<>(this) by return new WeekViewEntity.Event.Builder<>(item)