mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 05:43:30 +00:00
only prompt fingerprint if set
This commit is contained in:
@@ -47,11 +47,14 @@ namespace Bit.App.Pages
|
||||
|
||||
public async Task PromptFingerprintAfterResumeAsync()
|
||||
{
|
||||
await Task.Delay(500);
|
||||
if(!_promptedAfterResume)
|
||||
if(_vm.FingerprintLock)
|
||||
{
|
||||
_promptedAfterResume = true;
|
||||
await _vm?.PromptFingerprintAsync();
|
||||
await Task.Delay(500);
|
||||
if(!_promptedAfterResume)
|
||||
{
|
||||
_promptedAfterResume = true;
|
||||
await _vm?.PromptFingerprintAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -250,19 +250,23 @@ namespace Bit.App.Pages
|
||||
|
||||
public async Task PromptFingerprintAsync()
|
||||
{
|
||||
if(!FingerprintLock)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var success = await _platformUtilsService.AuthenticateFingerprintAsync(null,
|
||||
PinLock ? AppResources.PIN : AppResources.MasterPassword, () =>
|
||||
PinLock ? AppResources.PIN : AppResources.MasterPassword, () =>
|
||||
{
|
||||
var page = Page as LockPage;
|
||||
if(PinLock)
|
||||
{
|
||||
var page = Page as LockPage;
|
||||
if(PinLock)
|
||||
{
|
||||
page.PinEntry.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
page.MasterPasswordEntry.Focus();
|
||||
}
|
||||
});
|
||||
page.PinEntry.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
page.MasterPasswordEntry.Focus();
|
||||
}
|
||||
});
|
||||
_lockService.FingerprintLocked = !success;
|
||||
if(success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user