mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-23 13:40:43 +01:00
Fix issues with proxy show/hide
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b294a3ba3a
commit
10c3bf5524
@ -129,10 +129,11 @@ class SettingsPrivacyView(private val bundle: Bundle? = null) : BaseView() {
|
|||||||
view?.settings_proxy_host_edit?.isVisible = shouldBeVisible
|
view?.settings_proxy_host_edit?.isVisible = shouldBeVisible
|
||||||
view?.settings_proxy_port_edit?.isVisible = shouldBeVisible
|
view?.settings_proxy_port_edit?.isVisible = shouldBeVisible
|
||||||
view?.settings_proxy_use_credentials?.isVisible = shouldBeVisible
|
view?.settings_proxy_use_credentials?.isVisible = shouldBeVisible
|
||||||
|
|
||||||
if (!shouldBeVisible) {
|
if (!shouldBeVisible) {
|
||||||
appPreferences.setProxyNeedsCredentials(false)
|
appPreferences.setProxyNeedsCredentials(false)
|
||||||
|
toggleCredentialsSettingsVisibility(view, shouldBeVisible)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun toggleCredentialsSettingsVisibility(view: View?, shouldBeVisible: Boolean) {
|
private fun toggleCredentialsSettingsVisibility(view: View?, shouldBeVisible: Boolean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user