diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/MainViewModel.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/MainViewModel.kt index 7b56bdf4..6eb26e14 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/MainViewModel.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/viewmodel/MainViewModel.kt @@ -54,12 +54,8 @@ class MainViewModel(application: Application) : AndroidViewModel(application) { fun reloadServerList() { serverList = MmkvManager.decodeServerList() - viewModelScope.launch(Dispatchers.Default) { - updateCache() - launch(Dispatchers.Main) { - updateListAction.value = -1 - } - } + updateCache() + updateListAction.value = -1 } fun removeServer(guid: String) { diff --git a/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml b/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml index 927e1f05..4b7234b5 100644 --- a/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml +++ b/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml @@ -31,7 +31,7 @@ 手動鍵入 [Trojan] 自訂組態 從剪貼簿匯入自訂組態 - 從 URL 匯入自訂組態 + 從本地匯入自訂組態 從 URL 匯入自訂組態 掃描 URL 匯入自訂組態 確定刪除?