Can receive calls while in settings

The existing presented settings (or fingerprint verification) modals
were preventing the display of the incoming call modal.

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent f864207d48
commit d8df4b9e35

@ -161,9 +161,16 @@ NSString *const SignalsViewControllerSegueShowIncomingCall = @"ShowIncomingCallS
return;
}
SignalCall *call = (SignalCall *)notification.object;
[self performSegueWithIdentifier:SignalsViewControllerSegueShowIncomingCall sender:call];
// Dismiss any other modals so we can present call modal.
if (self.presentedViewController) {
[self dismissViewControllerAnimated:YES completion:^{
[self performSegueWithIdentifier:SignalsViewControllerSegueShowIncomingCall sender:call];
}];
} else {
[self performSegueWithIdentifier:SignalsViewControllerSegueShowIncomingCall sender:call];
}
}
- (void)previewingContext:(id<UIViewControllerPreviewing>)previewingContext

Loading…
Cancel
Save