We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f011abe commit 091ddb5Copy full SHA for 091ddb5
app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt
@@ -18,6 +18,7 @@ import fr.free.nrw.commons.utils.CustomSelectorUtils.Companion.checkWhetherFileE
18
import kotlinx.coroutines.CoroutineDispatcher
19
import kotlinx.coroutines.CoroutineScope
20
import kotlinx.coroutines.Dispatchers
21
+import kotlinx.coroutines.MainScope
22
import kotlinx.coroutines.launch
23
import java.util.Calendar
24
import java.util.concurrent.TimeUnit
@@ -65,7 +66,7 @@ class ImageLoader
65
66
/**
67
* Coroutine Scope.
68
*/
- private val scope: CoroutineScope = CoroutineScope(Dispatchers.IO)
69
+ private val scope: CoroutineScope = MainScope()
70
71
72
* Query image and setUp the view.
0 commit comments