mirror of
https://github.com/owenlejeune/TVTime.git
synced 2025-11-20 18:50:54 -05:00
fix list button on details
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
package com.owenlejeune.tvtime.api
|
||||
|
||||
import com.facebook.stetho.okhttp3.StethoInterceptor
|
||||
import com.localebro.okhttpprofiler.OkHttpProfilerInterceptor
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.logging.HttpLoggingInterceptor
|
||||
|
||||
class DebugHttpClient: HttpClient {
|
||||
override val httpClient: OkHttpClient = OkHttpClient.Builder()
|
||||
.addInterceptor(OkHttpProfilerInterceptor())
|
||||
.addNetworkInterceptor(StethoInterceptor())
|
||||
.addInterceptor(getLoggingInterceptor())
|
||||
.build()
|
||||
|
||||
private fun getLoggingInterceptor() = HttpLoggingInterceptor().apply {
|
||||
level = HttpLoggingInterceptor.Level.BODY
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user