From: Ryan Petrich Date: Thu, 23 Sep 2010 05:28:57 +0000 (-0600) Subject: Fix navigation bar animation when rotating X-Git-Tag: v1.0.3366~167 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/6b727a05d79d39a7fa5dcc6613c8f60f68035da1?hp=44c6e9a8d5d804f6c221bc5328971bd9a3b12e43 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];