From 2e81bf498775364ca18405d9157c15887f33250f Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Wed, 12 Jun 2024 21:24:15 +0800 Subject: [PATCH] Fix biometric password fallback --- app/lib/widget/settings/app_lock_settings.dart | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/lib/widget/settings/app_lock_settings.dart b/app/lib/widget/settings/app_lock_settings.dart index 7bbc29c5..b9771aae 100644 --- a/app/lib/widget/settings/app_lock_settings.dart +++ b/app/lib/widget/settings/app_lock_settings.dart @@ -206,7 +206,18 @@ class _WrappedAppLockSettings extends StatelessWidget { child: ListTile( title: Text(L10n.global().settingsAppLockTypePassword), ), - onPressed: () {}, + onPressed: () async { + final result = await _enterPassword(context); + if (result == true) { + Navigator.of(context).pop(true); + } else if (result == false) { + SnackBarManager().showSnackBar(SnackBar( + content: + Text(L10n.global().writePreferenceFailureNotification), + duration: k.snackBarDurationNormal, + )); + } + }, ), ], ),