[feat] UI optimization 3

This commit is contained in:
acite
2025-10-01 19:47:00 +08:00
parent 7c99ea394b
commit 603c2c38aa
17 changed files with 439 additions and 215 deletions

View File

@@ -219,6 +219,8 @@ class ApiClient @Inject constructor(
suspend fun apply(context: Context, urls: String, crt: String): String? {
try {
client = createOkHttp()
val urlList = urls.split(";").map { it.trim() }
var selectedUrl: String? = null
@@ -231,7 +233,6 @@ class ApiClient @Inject constructor(
}
if (selectedUrl == null) {
client = createOkHttp()
throw Exception("No reachable URL found")
}