Skip to content

Commit

Permalink
Fix bug where +dismissAllNotifications: does not respect the animated…
Browse files Browse the repository at this point in the history
… flag
  • Loading branch information
junjie committed Jul 7, 2014
1 parent 4fca8e8 commit 5d7d716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRToast/CRToast.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,6 @@ extern NSString *const kCRToastAutorotateKey;
Immidiately begins the (un)animated dismisal of a notification and canceling all others
@param animated If YES the notification will dismiss with its configure animation, otherwise it will immidiately disappear
*/
+ (void) dismissAllNotifications:(BOOL)animated;
+ (void)dismissAllNotifications:(BOOL)animated;

@end
2 changes: 1 addition & 1 deletion CRToast/CRToast.m
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ + (void)dismissNotification:(BOOL)animated {
}

+ (void)dismissAllNotifications:(BOOL)animated {
[[self manager] dismissAllNotifications:YES];
[[self manager] dismissAllNotifications:animated];
}

+ (instancetype)manager {
Expand Down

0 comments on commit 5d7d716

Please sign in to comment.