Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
probably better we put that here
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Mar 12, 2015
1 parent 8ae8328 commit 3f1e4be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HBTSStatusBarView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ - (void)_updateForCurrentStatusBarStyle {
#pragma mark - Show/hide

- (void)receivedStatusNotification:(NSNotification *)notification {
if (!self.superview || ![self.superview isKindOfClass:UIStatusBar.class]) {
return;
}

HBTSStatusBarType type = (HBTSStatusBarType)((NSNumber *)notification.userInfo[kHBTSMessageTypeKey]).intValue;
BOOL typing = ((NSNumber *)notification.userInfo[kHBTSMessageIsTypingKey]).boolValue;
BOOL typingTimeout = ((NSNumber *)notification.userInfo[kHBTSPreferencesTypingTimeoutKey]).boolValue;
Expand Down Expand Up @@ -218,7 +222,7 @@ - (void)receivedStatusNotification:(NSNotification *)notification {
}

- (void)showWithTimeout:(NSTimeInterval)timeout {
if ([UIApplication sharedApplication].statusBarHidden || !self.superview || ![self.superview isKindOfClass:UIStatusBar.class]) {
if ([UIApplication sharedApplication].statusBarHidden) {
return;
}

Expand Down

0 comments on commit 3f1e4be

Please sign in to comment.