mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 00:02:58 +03:00
check that now is > LastActivity Date
This commit is contained in:
parent
01736ca685
commit
cc63eb383d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ namespace Bit.App.Services
|
||||||
|
|
||||||
// Has it been longer than lockSeconds since the last time the app was used?
|
// Has it been longer than lockSeconds since the last time the app was used?
|
||||||
var now = DateTime.UtcNow;
|
var now = DateTime.UtcNow;
|
||||||
if((now - _appSettings.LastActivity).TotalSeconds < lockSeconds)
|
if(now > _appSettings.LastActivity && (now - _appSettings.LastActivity).TotalSeconds < lockSeconds)
|
||||||
{
|
{
|
||||||
return LockType.None;
|
return LockType.None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue