revert back to MainScope for database and ui updates

This commit is contained in:
Rohit Verma 2024-10-30 20:26:14 +05:30
parent 197855af0e
commit 6db4046577

View file

@ -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.