From: Jay Freeman (saurik) Date: Tue, 24 Dec 2013 12:20:18 +0000 (-0800) Subject: Last ditch hack to make the dropbar not fatal UI. X-Git-Tag: v1.1.9^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/8139d41dc7510f3ca7bfed913557d1f3ac71ca98?ds=inline Last ditch hack to make the dropbar not fatal UI. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 2c7458b9..409381bb 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_);