kunfei преди 3 години
родител
ревизия
59b0a80842

+ 0 - 1
app/src/app/java/io/legado/app/lib/cronet/AbsCallBack.kt

@@ -22,7 +22,6 @@ abstract class AbsCallBack(
     val mCall: Call,
     private val eventListener: EventListener? = null,
     private val responseCallback: Callback? = null
-
 ) : UrlRequest.Callback(), AutoCloseable {
 
     val buffer = Buffer()

+ 1 - 0
app/src/app/java/io/legado/app/lib/cronet/BodyUploadProvider.kt

@@ -10,6 +10,7 @@ import java.nio.ByteBuffer
 
 @Keep
 class BodyUploadProvider(private val body: RequestBody) : UploadDataProvider(), AutoCloseable {
+
     private val buffer = Buffer()
 
     init {

+ 1 - 0
app/src/app/java/io/legado/app/lib/cronet/CronetCoroutineInterceptor.kt

@@ -17,6 +17,7 @@ import kotlin.coroutines.resumeWithException
 @Keep
 @Suppress("unused")
 class CronetCoroutineInterceptor : Interceptor {
+
     override fun intercept(chain: Interceptor.Chain): Response {
         if (chain.call().isCanceled()) {
             throw IOException("Canceled")

+ 1 - 0
app/src/app/java/io/legado/app/lib/cronet/CronetInterceptor.kt

@@ -11,6 +11,7 @@ import java.io.IOException
 @Keep
 @Suppress("unused")
 class CronetInterceptor : Interceptor {
+
     @Throws(IOException::class)
     override fun intercept(chain: Interceptor.Chain): Response {
         if (chain.call().isCanceled()) {

+ 1 - 1
app/src/app/java/io/legado/app/lib/cronet/NewCallBack.kt

@@ -14,8 +14,8 @@ import java.util.concurrent.TimeUnit
 @Keep
 @RequiresApi(api = Build.VERSION_CODES.N)
 class NewCallBack(originalRequest: Request, mCall: Call) : AbsCallBack(originalRequest, mCall) {
-    private val responseFuture = CompletableFuture<Response>()
 
+    private val responseFuture = CompletableFuture<Response>()
 
     @Throws(IOException::class)
     override fun waitForDone(urlRequest: UrlRequest): Response {