File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -198,14 +198,7 @@ - (void)fadeInCurrentNotification
198198 }
199199
200200 CGSize statusBarSize = [UIApplication sharedApplication ].statusBarFrame .size ;
201-
202- if ([[UIApplication sharedApplication ] respondsToSelector: @selector (registerForRemoteNotifications )]) {
203- verticalOffset += statusBarSize.height ;
204- } else {
205- BOOL isPortrait = UIInterfaceOrientationIsPortrait ([[UIApplication sharedApplication ] statusBarOrientation ]);
206- CGFloat offset = isPortrait ? statusBarSize.height : statusBarSize.width ;
207- verticalOffset += offset;
208- }
201+ verticalOffset += MIN (statusBarSize.width , statusBarSize.height );
209202 };
210203
211204 if ([currentView.viewController isKindOfClass: [UINavigationController class ]] || [currentView.viewController.parentViewController isKindOfClass: [UINavigationController class ]])
You can’t perform that action at this time.
0 commit comments