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:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user