komikku/app/src/main/java/eu/kanade/tachiyomi/ui
Two-Ai 288fe0d888 Simplify PageHolder load Job (#9086)
Inline statusJob into loadJob, using supervisorScope to load the page
and track status changes in parallel.
- supervisorScope does not complete until both the child loadPage
  coroutine and statusFlow.collectLatest have completed.
- Cancelling supervisorScope cancels the child loadPage coroutine and
  statusFlow.collectLatest.
- Use supervisorScope instead of coroutineScope to let status
  collection continue if loadPage fails.

Inline progressJob into loadJob, using collectLatest's cancellation
to avoid cancelling the progressFlow collection explicitly.
- collectLatest cancels the previous action block when the flow
  emits a new value. This means the DOWNLOAD_IMAGE
  progressFlow.collectLatest gets automatically cancelled when
  statusFlow emits a new state.

Convert launchLoadJob to suspend function, move job launch to caller,
and rename as loadPageAndProcessStatus.

(cherry picked from commit 4635e58405eedce0b49fc69f7ccb190a7c600da9)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2023-02-26 21:37:26 -05:00
..
base Change source preference theming fix (#8679) 2022-12-05 13:45:48 -05:00
browse Add copy tags to clipboard feature (#9063) 2023-02-26 21:28:58 -05:00
category Move some interactors to domain module 2023-02-09 18:15:16 -05:00
download Remove FAB extra padding in DownloadQueueScreen (#9053) 2023-02-26 20:51:30 -05:00
history Move some interactors to domain module 2023-02-09 18:15:16 -05:00
home Adjust insets handling in tablet UI (#8711) 2022-12-16 00:32:14 -05:00
library Clean up LibraryItem (#9072) 2023-02-26 20:58:27 -05:00
main Remove background extensions updates check 2023-02-26 21:08:36 -05:00
manga Add copy tags to clipboard feature (#9063) 2023-02-26 21:28:58 -05:00
more Replace RxJava in DownloadQueue (#9016) 2023-02-26 20:14:36 -05:00
reader Simplify PageHolder load Job (#9086) 2023-02-26 21:37:26 -05:00
security Move more things around 2023-02-09 18:08:07 -05:00
setting Move more things around 2023-02-09 18:08:07 -05:00
stats Move some interactors to domain module 2023-02-09 18:15:16 -05:00
updates Fully utilize WorkManager for library updates (#9007) 2023-02-26 20:50:47 -05:00
webview Move more things around 2023-02-09 18:08:07 -05:00