simonalveteg / Workout-Tracker

A Workout Tracker for Android written with Jetpack Compose using MVVM architecture, a room database and dependency injection with dagger hilt.
21 stars 1 forks source link

Doesn't remember session state #19

Closed simonalveteg closed 11 months ago

simonalveteg commented 1 year ago

When returning to the app after a while the ui state seems to get reset. The session is set to session with id=0. Probably lifecycle related, with view model getting destroyed and recreated. Look into saving the ui state in a bundle or whatever you're supposed to do