diff --git a/MNAlertManager.m b/MNAlertManager.m index c8f79ad..527be35 100644 --- a/MNAlertManager.m +++ b/MNAlertManager.m @@ -111,7 +111,7 @@ -(void)newAlertWithData:(MNAlertData *)data NSNumber *blackAlertStyleEnabled = [preferenceManager.preferences valueForKey:@"blackAlertStyleEnabled"]; bool isBlackAlertStyleEnabled = blackAlertStyleEnabled ? [blackAlertStyleEnabled boolValue] : YES; - MNAlertViewController *viewController = [[MNAlertViewController alloc] initWithMNData:data]; + MNAlertViewController *viewController = [[MNAlertViewController alloc] initWithMNData:data pendingAlerts:pendingAlerts]; viewController.useBlackAlertStyle = isBlackAlertStyleEnabled; viewController.delegate = self; @@ -178,7 +178,7 @@ -(void)presentMostRecentPendingAlert NSNumber *blackAlertStyleEnabled = [preferenceManager.preferences valueForKey:@"blackAlertStyleEnabled"]; bool isBlackAlertStyleEnabled = blackAlertStyleEnabled ? [blackAlertStyleEnabled boolValue] : YES; - MNAlertViewController *viewController = [[MNAlertViewController alloc] initWithMNData:[pendingAlerts objectAtIndex:0]]; + MNAlertViewController *viewController = [[MNAlertViewController alloc] initWithMNData:[pendingAlerts objectAtIndex:0] pendingAlerts:pendingAlerts]; viewController.useBlackAlertStyle = isBlackAlertStyleEnabled; viewController.delegate = self; pendingAlertViewController = viewController; @@ -503,4 +503,3 @@ - (void)activator:(LAActivator *)activator abortEvent:(LAEvent *)event } @end -