hide menu view controller when resigning active

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent dde2fd6f33
commit bdc8181cbc

@ -164,6 +164,11 @@ const UIWindowLevel UIWindowLevel_MessageActions(void)
name:UIApplicationDidChangeStatusBarFrameNotification name:UIApplicationDidChangeStatusBarFrameNotification
object:nil]; object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(applicationWillResignActive:)
name:OWSApplicationWillResignActiveNotification
object:nil];
[self ensureWindowState]; [self ensureWindowState];
} }
@ -178,6 +183,11 @@ const UIWindowLevel UIWindowLevel_MessageActions(void)
self.returnToCallWindow.frame = newFrame; self.returnToCallWindow.frame = newFrame;
} }
- (void)applicationWillResignActive:(NSNotification *)notification
{
[self hideMenuActionsWindow];
}
- (UIWindow *)createReturnToCallWindow:(UIWindow *)rootWindow - (UIWindow *)createReturnToCallWindow:(UIWindow *)rootWindow
{ {
OWSAssertIsOnMainThread(); OWSAssertIsOnMainThread();

Loading…
Cancel
Save