mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
fix for crash when terminating app (#1589)
This commit is contained in:
parent
48e3986264
commit
1ebad6bca5
1 changed files with 6 additions and 0 deletions
|
@ -188,6 +188,12 @@ namespace Bit.iOS
|
|||
_storageService.SaveAsync(Constants.LastActiveTimeKey, _deviceActionService.GetActiveTime());
|
||||
_messagingService.Send("slept");
|
||||
|
||||
if (UIApplication.SharedApplication.KeyWindow == null)
|
||||
{
|
||||
// Despite IDE warning, KeyWindow is null here during app termination in iOS 15
|
||||
return;
|
||||
}
|
||||
|
||||
var view = new UIView(UIApplication.SharedApplication.KeyWindow.Frame)
|
||||
{
|
||||
Tag = 4321
|
||||
|
|
Loading…
Reference in a new issue