Skip to content

Commit

Permalink
revert back to MainScope for database and ui updates (#5914)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Raoul <[email protected]>
  • Loading branch information
rohit9625 and nicolas-raoul authored Nov 4, 2024
1 parent f011abe commit 091ddb5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import fr.free.nrw.commons.utils.CustomSelectorUtils.Companion.checkWhetherFileE
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import java.util.Calendar
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -65,7 +66,7 @@ class ImageLoader
/**
* Coroutine Scope.
*/
private val scope: CoroutineScope = CoroutineScope(Dispatchers.IO)
private val scope: CoroutineScope = MainScope()

/**
* Query image and setUp the view.
Expand Down

0 comments on commit 091ddb5

Please sign in to comment.