Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import database aborts when leaving settings screen #48

Open
simonalveteg opened this issue Aug 1, 2023 · 2 comments
Open

Import database aborts when leaving settings screen #48

simonalveteg opened this issue Aug 1, 2023 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@simonalveteg
Copy link
Owner

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

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

@simonalveteg simonalveteg added enhancement New feature or request bug Something isn't working labels Aug 1, 2023
@simonalveteg
Copy link
Owner Author

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

@simonalveteg simonalveteg self-assigned this Aug 5, 2023
@simonalveteg
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant