From d6011e1054c8dc9c2f6bc358721b04064e26c9a2 Mon Sep 17 00:00:00 2001 From: Ryan Petrich Date: Wed, 22 Sep 2010 23:28:57 -0600 Subject: [PATCH] Fix navigation bar animation when rotating --- Cydia.mm | 6 ++++++ 1 file changed, 6 insertions(+) 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]; -- 2.45.2