[feat] Better Transmission UI

This commit is contained in:
acite
2025-09-29 20:34:56 +08:00
parent 02d8d30da7
commit 8b5adfd6b7
8 changed files with 614 additions and 247 deletions

View File

@@ -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

View File

@@ -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)
}