From: Ryan Petrich Date: Thu, 23 Sep 2010 05:28:57 +0000 (-0600) Subject: Fix navigation bar animation when rotating X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/d6011e1054c8dc9c2f6bc358721b04064e26c9a2 Fix navigation bar animation when rotating --- diff --git a/Cydia.mm b/Cydia.mm index 5753deea..f94b9de6 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -7616,6 +7616,12 @@ freeing the view controllers on tab change */ [[root_ selectedViewController] _updateLayoutForStatusBarAndInterfaceOrientation]; } +- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration +{ + // XXX: fix Apple's layout bug + [[root_ selectedViewController] _updateLayoutForStatusBarAndInterfaceOrientation]; +} + - (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { if (dropped_) { [self raiseBar:NO];