Skip to content

Commit 190c1f2

Browse files
author
Sander-kornev
committed
Replace setNeedStatusBarAppearenceUpdate to update status bar after completion of transition.
1 parent 41fc21a commit 190c1f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ECSlidingViewController/ECSlidingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,6 @@ - (void)completeTransition:(BOOL)didComplete {
828828
if (self.animationComplete) self.animationComplete();
829829
self.animationComplete = nil;
830830

831-
[self setNeedsStatusBarAppearanceUpdate];
832831
[self updateTopViewGestures];
833832
[self endAppearanceTransitionForOperation:self.currentOperation isCancelled:[self transitionWasCancelled]];
834833

@@ -842,6 +841,7 @@ - (void)completeTransition:(BOOL)didComplete {
842841
self.transitionInProgress = NO;
843842
self.view.userInteractionEnabled = YES;
844843
[UIViewController attemptRotationToDeviceOrientation];
844+
[self setNeedsStatusBarAppearanceUpdate];
845845
}
846846

847847
- (UIViewController *)viewControllerForKey:(NSString *)key {

0 commit comments

Comments
 (0)