]> git.saurik.com Git - cydia.git/commitdiff
Fix navigation bar animation when rotating
authorRyan Petrich <rpetrich@gmail.com>
Thu, 23 Sep 2010 05:28:57 +0000 (23:28 -0600)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 10:42:38 +0000 (10:42 +0000)
Cydia.mm

index 5753deeaeceafbf18c4e6e549c1b05235f42fc9b..f94b9de6d7ff6895cbf621e3c721f6b867cdb536 100644 (file)
--- 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];