Skip to content

Commit

Permalink
初始化调整
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Feb 26, 2023
1 parent 8c2af5b commit 757ef17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions library/src/main/java/com/lxj/androidktx/AndroidKTX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ object AndroidKTX {
this.isDebug = isDebug
this.defaultLogTag = defaultLogTag
this.sharedPrefName = sharedPrefName
if(context is Application){
Utils.init(context)
}
ToastUtils.getDefaultMaker().setGravity(Gravity.CENTER, 0 , 0)
ToastUtils.getDefaultMaker().setBgResource(R.drawable._ktx_toast_bg)
ToastUtils.getDefaultMaker().setTextColor(Color.WHITE)
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/lxj/androidktx/okhttp/OkExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import java.util.concurrent.TimeUnit
object OkExt {
const val DefaultUrlTag = "okhttp"
const val NoBaseUrl = "_OkExtNoBaseUrl_"
private var httpTimeout = 15000L //30s
private var httpTimeout = 15000L //15s
val globalHeaders = arrayListOf<Pair<String, String>>()
val requestCache = hashMapOf<Any, Call>()
val baseUrlMap = hashMapOf<Any, String>() //存储多个baseUrl, key使用tag来存储
Expand Down

0 comments on commit 757ef17

Please sign in to comment.