archi icon indicating copy to clipboard operation
archi copied to clipboard

MVVM: List of repositories is lost when the screen is rotated

Open RothAndrew opened this issue 8 years ago • 1 comments

I'm focused on the app that implements MVVM, using it as an example to help in building my own app, and I see that the list of repositories is not persisted when the activity is killed and recreated when the device is rotated.

How would you accomplish persisting the list of repositories when the device is rotated?

RothAndrew avatar Oct 19 '16 15:10 RothAndrew

I figured out a way to do it in another repo I was looking at. I don't know if doing it the same way here will work or not but I'm wiped out and dont feel like trying any more. Maybe someone who finds this later will find it helpful...

RothAndrew avatar Oct 19 '16 20:10 RothAndrew