Skip to content

Commit 091ddb5

Browse files
revert back to MainScope for database and ui updates (commons-app#5914)
Co-authored-by: Nicolas Raoul <[email protected]>
1 parent f011abe commit 091ddb5

File tree

1 file changed

+2
-1
lines changed
  • app/src/main/java/fr/free/nrw/commons/customselector/ui/selector

1 file changed

+2
-1
lines changed

app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import fr.free.nrw.commons.utils.CustomSelectorUtils.Companion.checkWhetherFileE
1818
import kotlinx.coroutines.CoroutineDispatcher
1919
import kotlinx.coroutines.CoroutineScope
2020
import kotlinx.coroutines.Dispatchers
21+
import kotlinx.coroutines.MainScope
2122
import kotlinx.coroutines.launch
2223
import java.util.Calendar
2324
import java.util.concurrent.TimeUnit
@@ -65,7 +66,7 @@ class ImageLoader
6566
/**
6667
* Coroutine Scope.
6768
*/
68-
private val scope: CoroutineScope = CoroutineScope(Dispatchers.IO)
69+
private val scope: CoroutineScope = MainScope()
6970

7071
/**
7172
* Query image and setUp the view.

0 commit comments

Comments
 (0)