Skip to content

Commit

Permalink
initial state handled
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Paliyal <paliyalyogesh@gmail.com>
  • Loading branch information
yogeshpaliyal committed May 4, 2021
1 parent 9642239 commit 640652d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ class UniversalRecyclerAdapter<T> constructor(val adapterBuilder: Builder<T>) {
listener = adapterBuilder.noData.listener,
customBinding = adapterBuilder.noData.customBindingMapping
)

adapterBuilder.data?.let { updateData(data = it) }
}

fun updateData(data: Resource<List<T>?>) {
Expand Down

0 comments on commit 640652d

Please sign in to comment.