mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Fix for vault timeout not firing on resume (#1775)
* fix for vault timeout not firing on resume * call ResumedAsync with FireAndForget
This commit is contained in:
committed by
Matt Portune
parent
52f1143ad7
commit
2e1de95461
@@ -97,7 +97,7 @@ namespace Bit.App
|
||||
{
|
||||
if (Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
ResumedAsync();
|
||||
ResumedAsync().FireAndForget();
|
||||
}
|
||||
}
|
||||
else if (message.Command == "slept")
|
||||
@@ -205,7 +205,7 @@ namespace Bit.App
|
||||
_isResumed = true;
|
||||
if (Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
ResumedAsync();
|
||||
ResumedAsync().FireAndForget();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -215,12 +215,11 @@ namespace Bit.App
|
||||
_messagingService.Send("stopEventTimer");
|
||||
}
|
||||
|
||||
private async void ResumedAsync()
|
||||
private async Task ResumedAsync()
|
||||
{
|
||||
await UpdateThemeAsync();
|
||||
|
||||
await _vaultTimeoutService.CheckVaultTimeoutAsync();
|
||||
_messagingService.Send("startEventTimer");
|
||||
await UpdateThemeAsync();
|
||||
await ClearCacheIfNeededAsync();
|
||||
Prime();
|
||||
SyncIfNeeded();
|
||||
|
||||
Reference in New Issue
Block a user