mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
revert back to MainScope for database and ui updates (#5914)
Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
parent
f011abef1d
commit
091ddb5db1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue