1
0
mirror of https://github.com/bitwarden/mobile synced 2026-02-10 21:39:56 +00:00

Fix auto biometric prompt on vault timeout

This commit is contained in:
aaxdev
2020-08-22 13:10:29 +02:00
parent 3af08a4727
commit 67663d7be9

View File

@@ -407,18 +407,6 @@ namespace Bit.App
private async Task LockedAsync(bool autoPromptBiometric)
{
await _stateService.PurgeAsync();
if (autoPromptBiometric && Device.RuntimePlatform == Device.iOS)
{
var vaultTimeout = await _storageService.GetAsync<int?>(Constants.VaultTimeoutKey);
if (vaultTimeout == 0)
{
autoPromptBiometric = false;
}
}
else if (autoPromptBiometric && Device.RuntimePlatform == Device.Android)
{
autoPromptBiometric = false;
}
PreviousPageInfo lastPageBeforeLock = null;
if (Current.MainPage is TabbedPage tabbedPage && tabbedPage.Navigation.ModalStack.Count > 0)
{