You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
manager: opt in to DelicateCoroutinesApi
This commit is contained in:
@@ -15,6 +15,7 @@ import kotlinx.coroutines.Dispatchers
|
|||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import com.rifsxd.ksunext.ui.webui.initPlatform
|
import com.rifsxd.ksunext.ui.webui.initPlatform
|
||||||
|
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||||
|
|
||||||
lateinit var ksuApp: KernelSUApplication
|
lateinit var ksuApp: KernelSUApplication
|
||||||
|
|
||||||
@@ -61,6 +62,7 @@ class KernelSUApplication : Application() {
|
|||||||
}.build()
|
}.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@OptIn(DelicateCoroutinesApi::class)
|
||||||
private fun launchPlatformInit() {
|
private fun launchPlatformInit() {
|
||||||
// Use a coroutine to avoid blocking the main thread
|
// Use a coroutine to avoid blocking the main thread
|
||||||
GlobalScope.launch(Dispatchers.IO) {
|
GlobalScope.launch(Dispatchers.IO) {
|
||||||
|
|||||||
Reference in New Issue
Block a user