1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 10:34:07 +00:00

handle sleep event on ios manually

This commit is contained in:
Kyle Spearrin
2019-07-13 20:25:31 -04:00
parent 7da13e22ad
commit 40a3541e8e
2 changed files with 16 additions and 3 deletions

View File

@@ -194,6 +194,7 @@ namespace Bit.iOS
UIApplication.SharedApplication.KeyWindow.EndEditing(true);
UIApplication.SharedApplication.SetStatusBarHidden(true, false);
_storageService.SaveAsync(Constants.LastActiveKey, DateTime.UtcNow);
_messagingService.Send("slept");
base.DidEnterBackground(uiApplication);
}