mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-24 16:38:22 +01: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:
parent
615136be96
commit
3127295444
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user