Workout-Tracker icon indicating copy to clipboard operation
Workout-Tracker copied to clipboard

Import database aborts when leaving settings screen

Open simonalveteg opened this issue 2 years ago • 2 comments

View model gets killed => doesn't complete import.

Solution: Show that import is in progress and prevent user from leaving until completed.

simonalveteg avatar Aug 01 '23 20:08 simonalveteg

Investigate having it as a service so that it can run in the background without the user being stuck?

simonalveteg avatar Aug 03 '23 12:08 simonalveteg

Try using WorkManager with expedited work https://developer.android.com/guide/background/persistent/getting-started/define-work#expedited should start immedietly and can run in the background. Would be no need to create an entire service just for two functions

simonalveteg avatar Aug 05 '23 21:08 simonalveteg