From 640652d36089287e9517d24010e13e987ad0058b Mon Sep 17 00:00:00 2001 From: Yogesh Paliyal Date: Tue, 4 May 2021 08:27:31 +0530 Subject: [PATCH] initial state handled Signed-off-by: Yogesh Paliyal --- .../universal_adapter/adapter/UniversalRecyclerAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/universal_adapter/src/main/java/com/yogeshpaliyal/universal_adapter/adapter/UniversalRecyclerAdapter.kt b/universal_adapter/src/main/java/com/yogeshpaliyal/universal_adapter/adapter/UniversalRecyclerAdapter.kt index 66c3046..b629374 100644 --- a/universal_adapter/src/main/java/com/yogeshpaliyal/universal_adapter/adapter/UniversalRecyclerAdapter.kt +++ b/universal_adapter/src/main/java/com/yogeshpaliyal/universal_adapter/adapter/UniversalRecyclerAdapter.kt @@ -115,6 +115,8 @@ class UniversalRecyclerAdapter constructor(val adapterBuilder: Builder) { listener = adapterBuilder.noData.listener, customBinding = adapterBuilder.noData.customBindingMapping ) + + adapterBuilder.data?.let { updateData(data = it) } } fun updateData(data: Resource?>) {