Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When we clear the dashboard, hide the dashboard too.

  • Loading branch information...
commit 690c12d78aa5c0b2dfdbaed73f79986c9a15e1be 1 parent 8d4d50e
Peter Hajas peterhajas authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 MNAlertDashboardViewController.m
15 MNAlertDashboardViewController.m
View
@@ -233,22 +233,33 @@ -(void)clearDashboardPushed:(id)sender
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
+ bool didClear = NO;
if (buttonIndex == 0)
{
// Clear notifications!
[actionSheet dismissWithClickedButtonIndex:0 animated:YES];
[_delegate clearPending];
+ // Hide the dashboard view
+ didClear = YES;
}
else if (buttonIndex == 1)
{
// Don't do anything!
[actionSheet dismissWithClickedButtonIndex:1 animated:YES];
}
-
+
+ if(didClear)
+ {
+ [self fadeDashboardAway];
+ }
+ else
+ {
+ [clearAllButton setAlpha:1.0];
+ }
+
// Restore window and elements to original positions
[window setFrame:CGRectMake(0,-92,320,480)];
[alertListView setFrame:CGRectMake(16,112,287,322)];
- [clearAllButton setAlpha:1.0];
}
-(void)animationDidStop:(NSString*)animationID didFinish:(NSNumber*)finished inContext:(id)context
Please sign in to comment.
Something went wrong with that request. Please try again.