mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Make screen block view first responder.
This commit is contained in:
parent
6ccf93e929
commit
9364af9b85
|
@ -438,6 +438,8 @@ const UIWindowLevel UIWindowLevel_Background = -1.f;
|
|||
// Show the blocking window in front of the status bar.
|
||||
self.screenBlockingWindow.windowLevel = UIWindowLevelStatusBar + 1;
|
||||
self.rootWindow.hidden = YES;
|
||||
[self.screenBlockingWindow becomeFirstResponder];
|
||||
OWSAssert([self.screenBlockingWindow isFirstResponder]);
|
||||
} else {
|
||||
self.screenBlockingWindow.windowLevel = UIWindowLevel_Background;
|
||||
[self.rootWindow makeKeyAndVisible];
|
||||
|
|
|
@ -136,4 +136,9 @@ NSString *NSStringForScreenLockUIState(ScreenLockUIState value)
|
|||
[self.delegate unlockButtonWasTapped];
|
||||
}
|
||||
|
||||
- (BOOL)canBecomeFirstResponder
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue