]> git.saurik.com Git - cydia.git/commitdiff
Last ditch hack to make the dropbar not fatal UI. v1.1.9
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Dec 2013 12:20:18 +0000 (04:20 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Dec 2013 12:20:18 +0000 (04:20 -0800)
MobileCydia.mm

index 2c7458b955e1f5ae45604693584e8b20f10f72e7..409381bb95adb6fddf77a50152f776d1a1392274 100644 (file)
@@ -7121,14 +7121,16 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
     else if (kCFCoreFoundationVersionNumber < 800)
         barframe.origin.y = CYStatusBarHeight();
     else
     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];
 
 
     [refreshbar_ setFrame:barframe];
 
+    CGRect viewframe = [transition frame];
+
+if (kCFCoreFoundationVersionNumber < 800) {
     if (animated)
         [UIView beginAnimations:nil context:NULL];
 
     if (animated)
         [UIView beginAnimations:nil context:NULL];
 
-    CGRect viewframe = [transition frame];
     float adjust(barframe.size.height);
     if (kCFCoreFoundationVersionNumber >= 800)
         adjust -= CYStatusBarHeight();
     float adjust(barframe.size.height);
     if (kCFCoreFoundationVersionNumber >= 800)
         adjust -= CYStatusBarHeight();
@@ -7138,6 +7140,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
 
     if (animated)
         [UIView commitAnimations];
 
     if (animated)
         [UIView commitAnimations];
+}
 
     // Ensure bar has the proper width for our view, it might have changed
     barframe.size.width = viewframe.size.width;
 
     // 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]);
 
 
     CGRect barframe([refreshbar_ frame]);
 
+if (kCFCoreFoundationVersionNumber < 800) {
     if (animated)
         [UIView beginAnimations:nil context:NULL];
 
     if (animated)
         [UIView beginAnimations:nil context:NULL];
 
@@ -7168,6 +7172,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
     if (animated)
         [UIView commitAnimations];
 }
     if (animated)
         [UIView commitAnimations];
 }
+}
 
 - (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
     bool dropped(dropped_);
 
 - (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
     bool dropped(dropped_);