Skip to content

Commit

Permalink
OP QS Header: Use IO Coroutine Dispatcher instead of Main
Browse files Browse the repository at this point in the history
Signed-off-by: DrDisagree <[email protected]>
  • Loading branch information
Mahmud0808 committed Sep 12, 2024
1 parent 37758b9 commit 31ff6f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
// Misc
private lateinit var appContext: Context
private var mHandler: Handler = Handler(Looper.getMainLooper())
private val artworkExtractorScope = CoroutineScope(Dispatchers.Main + Job())
private var mMediaUpdater = CoroutineScope(Dispatchers.Main)
private val artworkExtractorScope = CoroutineScope(Dispatchers.IO + Job())
private var mMediaUpdater = CoroutineScope(Dispatchers.IO)
private var mMediaUpdaterJob: Job? = null
private var mActivityStarter: Any? = null
private var mMediaOutputDialogFactory: Any? = null
Expand Down

0 comments on commit 31ff6f1

Please sign in to comment.