diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-24 04:20:18 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-24 04:20:18 -0800 |
commit | 8139d41dc7510f3ca7bfed913557d1f3ac71ca98 (patch) | |
tree | 925f7d344ce754903edc51609b65d98d87a2636b | |
parent | a50752262929e990dc3f799115ccce983ac732d6 (diff) |
Last ditch hack to make the dropbar not fatal UI.v1.1.9
-rw-r--r-- | MobileCydia.mm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 2c7458b..409381b 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7121,14 +7121,16 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi else if (kCFCoreFoundationVersionNumber < 800) barframe.origin.y = CYStatusBarHeight(); else - barframe.origin.y = -barframe.size.height + CYStatusBarHeight(); + barframe.origin.y = 0; //-barframe.size.height + CYStatusBarHeight(); [refreshbar_ setFrame:barframe]; + CGRect viewframe = [transition frame]; + +if (kCFCoreFoundationVersionNumber < 800) { if (animated) [UIView beginAnimations:nil context:NULL]; - CGRect viewframe = [transition frame]; float adjust(barframe.size.height); if (kCFCoreFoundationVersionNumber >= 800) adjust -= CYStatusBarHeight(); @@ -7138,6 +7140,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi if (animated) [UIView commitAnimations]; +} // Ensure bar has the proper width for our view, it might have changed barframe.size.width = viewframe.size.width; @@ -7154,6 +7157,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi CGRect barframe([refreshbar_ frame]); +if (kCFCoreFoundationVersionNumber < 800) { if (animated) [UIView beginAnimations:nil context:NULL]; @@ -7168,6 +7172,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi if (animated) [UIView commitAnimations]; } +} - (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { bool dropped(dropped_); |