Workout-Tracker
Workout-Tracker copied to clipboard
Import database aborts when leaving settings screen
View model gets killed => doesn't complete import.
Solution: Show that import is in progress and prevent user from leaving until completed.
Investigate having it as a service so that it can run in the background without the user being stuck?
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