Fix save button visibility

This commit is contained in:
Chumva 2019-04-29 12:47:54 +03:00
parent b5e85a6d5b
commit 425b100668

View file

@ -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)