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 4167732 commit d6875f9Copy full SHA for d6875f9
sample_app/src/main/java/com/linecorp/lich/sample/MyApplication.kt
@@ -20,6 +20,14 @@ import android.os.StrictMode
20
21
class MyApplication : Application() {
22
23
+ init {
24
+ // Disable FastServiceLoader.
25
+ // To avoid StrictMode DiskReadViolation, we use the standard ServiceLoader to load
26
+ // MainDispatcherFactory.
27
+ // cf. https://github.com/Kotlin/kotlinx.coroutines/issues/1231
28
+ System.setProperty("kotlinx.coroutines.fast.service.loader", "false")
29
+ }
30
+
31
override fun onCreate() {
32
super.onCreate()
33
0 commit comments