Compare commits

..
1 Commits
Author SHA1 Message Date
AmineB 1b2e9edc8c chore: better handling of coroutine dispatchers.
Check PR code / BuildAndTestAndCoverage (pull_request) Successful in 30m26s
2025-03-25 12:42:43 +01:00
@@ -643,8 +643,8 @@ class HomeActivity :
R.id.readAll -> {
if (elementsShown == ItemType.UNREAD) {
needsConfirmation(R.string.readAll, R.string.markall_dialog_message) {
binding.swipeRefreshLayout.isRefreshing = true
CountingIdlingResourceSingleton.increment()
binding.swipeRefreshLayout.isRefreshing = true
CoroutineScope(Dispatchers.IO).launch {
val success = repository.markAllAsRead(items)
CountingIdlingResourceSingleton.increment()