From d1400ff422c989c5e354d46a53aead4942ace6ad Mon Sep 17 00:00:00 2001 From: Sadwhy <99601717+Sadwhy@users.noreply.github.com> Date: Sat, 23 Nov 2024 23:20:04 +0600 Subject: [PATCH] Fix save state --- .../main/java/ani/dantotsu/settings/ProxyDialogFragment.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/ani/dantotsu/settings/ProxyDialogFragment.kt b/app/src/main/java/ani/dantotsu/settings/ProxyDialogFragment.kt index a0c275bef23..d3e94c67d1c 100644 --- a/app/src/main/java/ani/dantotsu/settings/ProxyDialogFragment.kt +++ b/app/src/main/java/ani/dantotsu/settings/ProxyDialogFragment.kt @@ -39,6 +39,10 @@ class ProxyDialogFragment : BottomSheetDialogFragment() { binding.proxyUsername.setText(proxyUsername) binding.proxyPassword.setText(proxyPassword) binding.proxyAuthentication.isChecked = authEnabled + binding.proxyUsername.isEnabled = authEnabled + binding.proxyPassword.isEnabled = authEnabled + binding.proxyUsernameLayout.isEnabled = authEnabled + binding.proxyPasswordLayout.isEnabled = authEnabled binding.proxySave.setOnClickListener { proxyHost = binding.proxyHost.text.toString() ?: "" @@ -68,4 +72,4 @@ class ProxyDialogFragment : BottomSheetDialogFragment() { _binding = null super.onDestroyView() } -} \ No newline at end of file +}