forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate the RepositionField task to coroutine (ankidroid#12787)
* Extract RepositionField task usages into a single method This will make it easier to migrate to coroutine. * Inline the RepositionField task in ModelFieldEditor * Migrate the RepositionField task to coroutine The handler was removed(no other usages) and it's actions were inlined: - on start it showed a ProgressBar(done with withProgress) - on task completed it dismissed the progressbar and reinitialized the activity(or it closed the activity for exception in the task) Also deletes the in layout ProgressBar related code as it isn't use anymore.
- Loading branch information
Showing
2 changed files
with
22 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters