Hey. I'm using a MVVM viewmodel class which successfully retains list data for a RecyclerView after a configuration change. However, the previous RecyclerView position is not restored. What would be a good way to solve this?
I saw that blog post, but it just got me more confused. From what I understand on configuration change the livedata that was being observed gets a callback. That callback is where I set my adapter data. But it seems the callback happens after the onCreate() function where I set my recyclerview adapter.
https://pastebin.com/aRFzW9FY