Compare commits

..

1 Commits

Author SHA1 Message Date
1b2e9edc8c chore: better handling of coroutine dispatchers. 2025-03-25 12:42:43 +01:00

@ -643,8 +643,8 @@ class HomeActivity :
R.id.readAll -> { R.id.readAll -> {
if (elementsShown == ItemType.UNREAD) { if (elementsShown == ItemType.UNREAD) {
needsConfirmation(R.string.readAll, R.string.markall_dialog_message) { needsConfirmation(R.string.readAll, R.string.markall_dialog_message) {
binding.swipeRefreshLayout.isRefreshing = true
CountingIdlingResourceSingleton.increment() CountingIdlingResourceSingleton.increment()
binding.swipeRefreshLayout.isRefreshing = true
CoroutineScope(Dispatchers.IO).launch { CoroutineScope(Dispatchers.IO).launch {
val success = repository.markAllAsRead(items) val success = repository.markAllAsRead(items)
CountingIdlingResourceSingleton.increment() CountingIdlingResourceSingleton.increment()