aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-04 12:15:54 +0100
committerDanilo M. <danix@danix.xyz>2026-11-04 12:15:54 +0100
commit9f4e4f127c51928c6ffbe31003f76e7d54bf8113 (patch)
tree426a1208fb0dfe2636cc45112c4a272803c39a95 /app/src/main/java
parente36de1d2eabd547d52c135bdd581b79cfde84014 (diff)
downloadHardenedPass-9f4e4f127c51928c6ffbe31003f76e7d54bf8113.tar.gz
HardenedPass-9f4e4f127c51928c6ffbe31003f76e7d54bf8113.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/ui/settings/SettingsDestination.kt3
1 files changed, 2 insertions, 1 deletions
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() {