Skip to content

Commit

Permalink
Added some methods for toggling the doublehigh statusbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhajas committed Mar 21, 2011
1 parent 532c129 commit fcbba03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions MNAlertManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-(UIImage*)iconForBundleID:(NSString *)bundleID;
-(void)dismissSwitcher;
-(void)wakeDeviceScreen;
-(void)toggleDoubleHighStatusBar;
@end

@interface MNAlertManager : NSObject <MNAlertViewControllerDelegate,
Expand Down
10 changes: 8 additions & 2 deletions MNAlertManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ -(void)newAlertWithData:(MNAlertData *)data
//Add the subview
[alertWindow addSubview:viewController.view];
[alertWindow setNeedsDisplay];

//Expand the status bar
[_delegate toggleDoubleHighStatusBar];
}
}
else
Expand Down Expand Up @@ -157,12 +160,14 @@ -(void)showDashboardFromSwitcher

[self hidePendingAlert];
[dashboard showDashboard];
[_delegate toggleDoubleHighStatusBar];
}

-(void)showDashboard
{
[self hidePendingAlert];
[dashboard showDashboard];
[_delegate toggleDoubleHighStatusBar];
}

-(void)fadeDashboardDown
Expand All @@ -172,7 +177,7 @@ -(void)fadeDashboardDown

-(void)fadeDashboardAway
{
[dashboard fadeDashboardAway];
[dashboard fadeDashboardAway];
}

-(void)showLockscreen
Expand Down Expand Up @@ -201,7 +206,7 @@ -(void)hidePendingAlert
[pendingAlertViewController.view removeFromSuperview];
alertWindow.frame = CGRectMake(0,0,320,0);
alertIsShowing = YES;

[_delegate toggleDoubleHighStatusBar];
}

//Delegate method for MNAlertViewController
Expand All @@ -226,6 +231,7 @@ -(void)alertViewController:(MNAlertViewController *)viewController hadActionTake
[self saveOut];
[dashboard refresh];
[lockscreen refresh];
[_delegate toggleDoubleHighStatusBar];
}

-(void)takeActionOnAlertWithData:(MNAlertData *)data
Expand Down

0 comments on commit fcbba03

Please sign in to comment.