1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

restore vault timeout timer for Android (#1220)

This commit is contained in:
Matt Portune
2021-01-15 14:04:07 -05:00
committed by GitHub
parent cdc08e7e8a
commit 56935a7210
10 changed files with 44 additions and 21 deletions

View File

@@ -432,9 +432,9 @@ namespace Bit.iOS.Core.Services
public long GetActiveTime()
{
// Fall back to UnixTimeSeconds in case this approach stops working. We'll lose clock-change protection but
// the lock functionality will continue to work.
return iOSHelpers.GetSystemUpTimeSeconds() ?? DateTimeOffset.UtcNow.ToUnixTimeSeconds();
// Fall back to UnixTimeMilliseconds in case this approach stops working. We'll lose clock-change
// protection but the lock functionality will continue to work.
return iOSHelpers.GetSystemUpTimeMilliseconds() ?? DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
}
private void ImagePicker_FinishedPickingMedia(object sender, UIImagePickerMediaPickedEventArgs e)