From c8b91599c6fb273f65c2fe11738194e4461773e0 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sat, 13 Sep 2025 10:16:04 +0300 Subject: [PATCH] Fix OkHttp initialization --- app/src/main/kotlin/org/koitharu/kotatsu/core/BaseApp.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/BaseApp.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/BaseApp.kt index 6f745c3cc..cdaff04b8 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/BaseApp.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/BaseApp.kt @@ -13,6 +13,7 @@ import dagger.hilt.android.HiltAndroidApp import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.launch +import okhttp3.internal.platform.PlatformRegistry import org.acra.ACRA import org.acra.ReportField import org.acra.config.dialog @@ -79,6 +80,7 @@ open class BaseApp : Application(), Configuration.Provider { override fun onCreate() { super.onCreate() + PlatformRegistry.applicationContext = this // TODO replace with OkHttp.initialize if (ACRA.isACRASenderServiceProcess()) { return }