Skip to content

Commit

Permalink
Feature: Added rest of the support for new notification bar swiping (…
Browse files Browse the repository at this point in the history
…modified use of initWithMNData:)
  • Loading branch information
kristianpennacchia committed Jun 5, 2011
1 parent fc881c8 commit 3fd2dd8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MNAlertManager.m
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -503,4 +503,3 @@ - (void)activator:(LAActivator *)activator abortEvent:(LAEvent *)event
}

@end

0 comments on commit 3fd2dd8

Please sign in to comment.