epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

No adapter attached Warning message

Open lukicmarko opened this issue 3 years ago • 1 comments
trafficstars

When the fragment is reopened I get the message "RecyclerView: No adapter attached; skipping layout" and EpoxyRecyclerView now shows the list items. I found that for "regular" android RecyclerView you should set a new LayoutManager after each Fragment view recreation, Is there any solution for Epoxy

lukicmarko avatar Aug 16 '22 22:08 lukicmarko

My suggestion: Try to clear adapter on destroyView of Fragment override fun onDestroyView() { super.onDestroyView() binding.bookRecyclerView.adapter = null }

viroth-ty avatar Oct 21 '22 06:10 viroth-ty