mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 13:53:29 +00:00
only prompt fingerprint if set
This commit is contained in:
@@ -46,6 +46,8 @@ namespace Bit.App.Pages
|
|||||||
public Entry PinEntry { get; set; }
|
public Entry PinEntry { get; set; }
|
||||||
|
|
||||||
public async Task PromptFingerprintAfterResumeAsync()
|
public async Task PromptFingerprintAfterResumeAsync()
|
||||||
|
{
|
||||||
|
if(_vm.FingerprintLock)
|
||||||
{
|
{
|
||||||
await Task.Delay(500);
|
await Task.Delay(500);
|
||||||
if(!_promptedAfterResume)
|
if(!_promptedAfterResume)
|
||||||
@@ -54,6 +56,7 @@ namespace Bit.App.Pages
|
|||||||
await _vm?.PromptFingerprintAsync();
|
await _vm?.PromptFingerprintAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected override async void OnAppearing()
|
protected override async void OnAppearing()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -250,6 +250,10 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
public async Task PromptFingerprintAsync()
|
public async Task PromptFingerprintAsync()
|
||||||
{
|
{
|
||||||
|
if(!FingerprintLock)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
var success = await _platformUtilsService.AuthenticateFingerprintAsync(null,
|
var success = await _platformUtilsService.AuthenticateFingerprintAsync(null,
|
||||||
PinLock ? AppResources.PIN : AppResources.MasterPassword, () =>
|
PinLock ? AppResources.PIN : AppResources.MasterPassword, () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user