[feat] Better Transmission UI
This commit is contained in:
@@ -231,6 +231,7 @@ class ApiClient @Inject constructor(
|
||||
}
|
||||
|
||||
if (selectedUrl == null) {
|
||||
client = createOkHttp()
|
||||
throw Exception("No reachable URL found")
|
||||
}
|
||||
|
||||
@@ -242,11 +243,6 @@ class ApiClient @Inject constructor(
|
||||
(context as AetherApp).abyssService?.proxy?.config(getBase().toUri().host!!, 4096)
|
||||
}
|
||||
api = createRetrofit().create(ApiInterface::class.java)
|
||||
|
||||
Log.i("Delay Analyze", "Start Abyss Hello")
|
||||
val h = api!!.hello()
|
||||
Log.i("Delay Analyze", "Abyss Hello: ${h.string()}")
|
||||
|
||||
return base
|
||||
} catch (_: Exception) {
|
||||
api = null
|
||||
|
@@ -77,6 +77,10 @@ class FetchManager @Inject constructor(
|
||||
fetch?.resume(id)
|
||||
}
|
||||
|
||||
fun retry(id: Int) {
|
||||
fetch?.retry(id)
|
||||
}
|
||||
|
||||
fun cancel(id: Int) {
|
||||
fetch?.cancel(id)
|
||||
}
|
||||
|
Reference in New Issue
Block a user