diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/ProxySettingsDialogFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/ProxySettingsDialogFragment.kt index 133be97489..1587845f9f 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/ProxySettingsDialogFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/ProxySettingsDialogFragment.kt @@ -190,7 +190,7 @@ class ProxySettingsDialogFragment : BaseDialogFragment() { selectedProxyType = proxyTypeTag updateSelectedProxyType() updateEditingMode() - updateSaveButtonVisibility(true) + updateSaveButtonVisibility(selectedProxyType != settings.currentProxyPref.type && portEditText.text.isNotEmpty() && serverEditText.text.isNotEmpty()) } this.tag = proxyTypeTag container.addView(this)