Skip to content

Commit

Permalink
Make onCreateItem abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
thellmund committed Apr 15, 2022
1 parent 8d66ca0 commit b61569a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/main/java/com/alamkanak/weekview/WeekView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1479,11 +1479,7 @@ class WeekView @JvmOverloads constructor(
* @param item The item of type [T] that was submitted to [WeekView]
* @return A [WeekViewItem] that will be rendered in [WeekView]
*/
open fun onCreateItem(item: T): WeekViewItem {
throw RuntimeException(
"You called submitList() on WeekView's adapter, but didn't implement onCreateItem()."
)
}
abstract fun onCreateItem(item: T): WeekViewItem

/**
* Called for each element of type [T] that was submitted to this adapter. This method must
Expand Down

0 comments on commit b61569a

Please sign in to comment.