|
|
@ -184,6 +184,7 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("NotifyDataSetChanged") |
|
|
|
@Synchronized |
|
|
|
@Synchronized |
|
|
|
fun addItems(newItems: List<ITEM>) { |
|
|
|
fun addItems(newItems: List<ITEM>) { |
|
|
|
kotlin.runCatching { |
|
|
|
kotlin.runCatching { |
|
|
@ -219,6 +220,7 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("NotifyDataSetChanged") |
|
|
|
@Synchronized |
|
|
|
@Synchronized |
|
|
|
fun removeItems(items: List<ITEM>) { |
|
|
|
fun removeItems(items: List<ITEM>) { |
|
|
|
kotlin.runCatching { |
|
|
|
kotlin.runCatching { |
|
|
@ -279,6 +281,7 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("NotifyDataSetChanged") |
|
|
|
@Synchronized |
|
|
|
@Synchronized |
|
|
|
fun clearItems() { |
|
|
|
fun clearItems() { |
|
|
|
kotlin.runCatching { |
|
|
|
kotlin.runCatching { |
|
|
|