ios: advanced network settings translations (#899)

This commit is contained in:
JRoberts
2022-08-04 19:20:00 +04:00
committed by GitHub
parent 497cf86eb0
commit 8dc7bea724
4 changed files with 288 additions and 15 deletions

View File

@@ -368,7 +368,7 @@ open class ChatController(private val ctrl: ChatCtrl, val ntfManager: NtfManager
suspend fun apiGetNetworkConfig(): NetCfg? {
val r = sendCmd(CC.APIGetNetworkConfig())
if (r is CR.NetworkConfig) return r.networkConfig
Log.e(TAG, "getNetworkConfig bad response: ${r.responseType} ${r.details}")
Log.e(TAG, "apiGetNetworkConfig bad response: ${r.responseType} ${r.details}")
return null
}
@@ -377,7 +377,7 @@ open class ChatController(private val ctrl: ChatCtrl, val ntfManager: NtfManager
return when (r) {
is CR.CmdOk -> true
else -> {
Log.e(TAG, "setNetworkConfig bad response: ${r.responseType} ${r.details}")
Log.e(TAG, "apiSetNetworkConfig bad response: ${r.responseType} ${r.details}")
AlertManager.shared.showAlertMsg(
generalGetString(R.string.error_setting_network_config),
"${r.responseType}: ${r.details}"