mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-02 15:53:55 +01:00
revert back to MainScope for database and ui updates
This commit is contained in:
parent
197855af0e
commit
6db4046577
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.CoroutineDispatcher
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
import kotlinx.coroutines.MainScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import java.util.Calendar
|
import java.util.Calendar
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
@ -65,7 +66,7 @@ class ImageLoader
|
||||||
/**
|
/**
|
||||||
* Coroutine Scope.
|
* Coroutine Scope.
|
||||||
*/
|
*/
|
||||||
private val scope: CoroutineScope = CoroutineScope(Dispatchers.IO)
|
private val scope: CoroutineScope = MainScope()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query image and setUp the view.
|
* Query image and setUp the view.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue