mirror of
https://github.com/bitwarden/mobile
synced 2025-02-02 11:37:14 +01:00
no need to schedule locking if already locked
This commit is contained in:
parent
cf41c5e090
commit
3f8ab1bfe7
@ -181,6 +181,15 @@ namespace Bit.App
|
|||||||
|
|
||||||
private async Task HandleLockingAsync()
|
private async Task HandleLockingAsync()
|
||||||
{
|
{
|
||||||
|
if(await _lockService.IsLockedAsync())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var authed = await _userService.IsAuthenticatedAsync();
|
||||||
|
if(!authed)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
var lockOption = _platformUtilsService.LockTimeout();
|
var lockOption = _platformUtilsService.LockTimeout();
|
||||||
if(lockOption == null)
|
if(lockOption == null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user