Makes the root okhttp client for an Empty manager a lazy property to allow loading in Preview screens
This commit is contained in:
+2
-1
@@ -82,12 +82,13 @@ class DualHttpClientManager(
|
||||
}
|
||||
|
||||
object EmptyHttpClientManager : IHttpClientManager {
|
||||
val rootOkHttpClient =
|
||||
val rootOkHttpClient by lazy {
|
||||
OkHttpClient
|
||||
.Builder()
|
||||
.followRedirects(true)
|
||||
.followSslRedirects(true)
|
||||
.build()
|
||||
}
|
||||
|
||||
override fun getHttpClient(useProxy: Boolean) = rootOkHttpClient
|
||||
|
||||
|
||||
Reference in New Issue
Block a user