Is it good practice to call a new adapter without clearing the previous one before in the same RecyclerView?
I have a function that creates an adapter:
private fun createCalendarAdapter(
calendarRecyclerView: RecyclerView,
) {
// Create adapter, manager and observer
val calendarAdapter = HorizontalCalendarAdapter(...)
calendarRecyclerView.adapter = calendarAdapter
calendarRecyclerView.layoutManager = LinearLayoutManager(activity?.applicationContext, LinearLayoutManager.HORIZONTAL, false)
...
}
Question: Is it good practice to call multiple of this (without...