fix: show node name instead of address

This commit is contained in:
- 2024-12-09 21:43:02 +01:00 committed by anoncontributorxmr
parent c129252da5
commit f35ca00b16
No known key found for this signature in database
GPG Key ID: 318D49FCE95DEA5A
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class OnboardingActivity : AppCompatActivity() {
walletProxyPortEditText.isEnabled = usingProxy && !usingBundledTor
val node = PrefService.instance.node // should be using default here
selectNodeButton.text = getString(R.string.node_button_text, node?.address)
selectNodeButton.text = getString(R.string.node_button_text, node?.name)
bindListeners()
bindObservers()

View File

@ -84,7 +84,7 @@ class SettingsActivity : AppCompatActivity() {
updateProxy(cachedProxyAddress, cachedProxyPort)
val node = PrefService.instance.node // shouldn't use default value here
selectNodeButton.text = getString(R.string.node_button_text, node?.address)
selectNodeButton.text = getString(R.string.node_button_text, node?.name)
bindListeners()
bindObservers()

View File

@ -21,7 +21,7 @@ class NodeSelectionDialogListenerAdapter(
override fun onNodeSelected() {
val node = PrefService.instance.node
setSelectNodeButtonText(activity.getString(R.string.node_button_text, node?.address))
setSelectNodeButtonText(activity.getString(R.string.node_button_text, node?.name))
val (proxyAddress, proxyPort) = getProxyAndPortValues()
Utils.refreshProxy(proxyAddress, proxyPort)