1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-11 05:43:30 +00:00

dont auto show fingerprint if lock is initiated

This commit is contained in:
Kyle Spearrin
2019-06-01 01:07:02 -04:00
parent 4ae02c27a4
commit 5ce2eaf77e
7 changed files with 25 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ namespace Bit.Core.Abstractions
Task<bool> IsLockedAsync();
Task<Tuple<bool, bool>> IsPinLockSetAsync();
Task<bool> IsFingerprintLockSetAsync();
Task LockAsync(bool allowSoftLock = false);
Task LockAsync(bool allowSoftLock = false, bool userInitiated = false);
Task SetLockOptionAsync(int? lockOption);
}
}

View File

@@ -99,7 +99,7 @@ namespace Bit.Core.Services
}
}
public async Task LockAsync(bool allowSoftLock = false)
public async Task LockAsync(bool allowSoftLock = false, bool userInitiated = false)
{
var authed = await _userService.IsAuthenticatedAsync();
if(!authed)
@@ -119,7 +119,7 @@ namespace Bit.Core.Services
}
if(FingerprintLocked || PinLocked)
{
_messagingService.Send("locked");
_messagingService.Send("locked", userInitiated);
// TODO: locked callback?
return;
}
@@ -134,7 +134,7 @@ namespace Bit.Core.Services
_cipherService.ClearCache();
_collectionService.ClearCache();
_searchService.ClearIndex();
_messagingService.Send("locked");
_messagingService.Send("locked", userInitiated);
// TODO: locked callback?
}