mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix biometric password fallback
This commit is contained in:
parent
13987a2d44
commit
2e81bf4987
1 changed files with 12 additions and 1 deletions
|
@ -206,7 +206,18 @@ class _WrappedAppLockSettings extends StatelessWidget {
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
title: Text(L10n.global().settingsAppLockTypePassword),
|
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,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue