Relative Content

Tag Archive for androidkotlinkotlin-coroutines

Why are items in RecyclerView not shown when back is pressed?

So, I have a FragmentA. It contains a RecyclerView. It shows the list of items as expected at first. Now, when user clicks on one of the item, we navigate to FragmentB (FragmentA still in backstack). When user presses back, the backstack pops and now, we’re on FragmentA but, now, the RecyclerView is empty.