mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Fixed: UnsafeCallOnNullableType detekt issue
This commit is contained in:
parent
6e804384a9
commit
66874849e2
@ -176,15 +176,17 @@ class ZimManageViewModel @Inject constructor(
|
||||
.addNetworkInterceptor(UserAgentInterceptor(USER_AGENT))
|
||||
.addNetworkInterceptor { chain ->
|
||||
val originalResponse = chain.proceed(chain.request())
|
||||
originalResponse.newBuilder()
|
||||
.body(
|
||||
ProgressResponseBody(
|
||||
originalResponse.body!!,
|
||||
AppProgressListenerProvider(this),
|
||||
contentLength
|
||||
originalResponse.body?.let { responseBody ->
|
||||
originalResponse.newBuilder()
|
||||
.body(
|
||||
ProgressResponseBody(
|
||||
responseBody,
|
||||
AppProgressListenerProvider(this),
|
||||
contentLength
|
||||
)
|
||||
)
|
||||
)
|
||||
.build()
|
||||
.build()
|
||||
} ?: originalResponse
|
||||
}
|
||||
.build()
|
||||
return KiwixService.ServiceCreator.newHackListService(customOkHttpClient, KIWIX_DOWNLOAD_URL)
|
||||
@ -325,6 +327,7 @@ class ZimManageViewModel @Inject constructor(
|
||||
return None
|
||||
}
|
||||
|
||||
@Suppress("NoNameShadowing")
|
||||
private fun requestsAndConnectivtyChangesToLibraryRequests(
|
||||
library: PublishProcessor<LibraryNetworkEntity>,
|
||||
) =
|
||||
|
Loading…
x
Reference in New Issue
Block a user