]> git.saurik.com Git - cydia.git/commitdiff
I think this made the dropbar almost work on iOS 7.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 23 Dec 2013 09:32:23 +0000 (01:32 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 23 Dec 2013 09:32:23 +0000 (01:32 -0800)
MobileCydia.mm

index a1a1ff245290645374997bbfd852213be11fc184..ed0f35a8bdbe7d25377d3ee863e793f8c2b1f515 100644 (file)
@@ -7102,10 +7102,12 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
 
     CGRect barframe([refreshbar_ frame]);
 
-    if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_3_0) // XXX: _UIApplicationLinkedOnOrAfter(4)
+    if (kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iPhoneOS_3_0) // XXX: _UIApplicationLinkedOnOrAfter(4)
+        barframe.origin.y = 0;
+    else if (kCFCoreFoundationVersionNumber < 800)
         barframe.origin.y = CYStatusBarHeight();
     else
-        barframe.origin.y = 0;
+        barframe.origin.y = -barframe.size.height;
 
     [refreshbar_ setFrame:barframe];