mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-08 15:58:40 +01:00
feat: KEY_CONNECTION_TIMEOUT set read write timeouts too
This commit is contained in:
parent
b473d9d6d8
commit
20f03c002c
@ -190,8 +190,8 @@ object HttpClientFactory {
|
||||
|
||||
class HttpClientConfiguration(val prefs: SharedPreferences) {
|
||||
|
||||
var readTimeoutSecs: Long = -1
|
||||
var writeTimeoutSecs: Long = -1
|
||||
var readTimeoutSecs: Long = prefs.getInt(KEY_CONNECTION_TIMEOUT, 10).toLong()
|
||||
var writeTimeoutSecs: Long = prefs.getInt(KEY_CONNECTION_TIMEOUT, 10).toLong()
|
||||
var connectionTimeoutSecs: Long = prefs.getInt(KEY_CONNECTION_TIMEOUT, 10).toLong()
|
||||
var cacheSize: Int = prefs[cacheSizeLimitKey]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user