From 9f4e4f127c51928c6ffbe31003f76e7d54bf8113 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 4 Nov 2026 12:15:54 +0100 Subject: fix(app): show the autofill switch off right after turning it off hasEnabledAutofillServices() still answers true right after disableAutofillServices(), so the switch stayed on and the next tap turned autofill off again instead of opening the instructions dialog. Co-Authored-By: Claude Opus 5.5 --- app/src/main/java/app/passwordstore/ui/settings/SettingsDestination.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/app/passwordstore/ui/settings/SettingsDestination.kt b/app/src/main/java/app/passwordstore/ui/settings/SettingsDestination.kt index 9fb25e29..c3809b36 100644 --- a/app/src/main/java/app/passwordstore/ui/settings/SettingsDestination.kt +++ b/app/src/main/java/app/passwordstore/ui/settings/SettingsDestination.kt @@ -148,7 +148,8 @@ fun SettingsSectionDestination( if (value) dialog = SettingsDialog.Autofill else { activity.autofillManager?.disableAutofillServices() - refresh() + // hasEnabledAutofillServices() still answers true right after this call. + autofillEnabled = false } PreferenceKeys.BIOMETRIC_AUTH_2 -> { fun write() { -- cgit v1.2.3