Fix issues with proxy show/hide

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-04-24 14:31:56 +02:00
parent b294a3ba3a
commit 10c3bf5524
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0

View File

@ -129,10 +129,11 @@ class SettingsPrivacyView(private val bundle: Bundle? = null) : BaseView() {
view?.settings_proxy_host_edit?.isVisible = shouldBeVisible
view?.settings_proxy_port_edit?.isVisible = shouldBeVisible
view?.settings_proxy_use_credentials?.isVisible = shouldBeVisible
if (!shouldBeVisible) {
appPreferences.setProxyNeedsCredentials(false)
toggleCredentialsSettingsVisibility(view, shouldBeVisible)
}
}
private fun toggleCredentialsSettingsVisibility(view: View?, shouldBeVisible: Boolean) {