diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-23 01:32:23 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-23 01:32:23 -0800 |
commit | 90bf9a3d170ab2dc4701c76f7b3911308211f542 (patch) | |
tree | 562d6154969dac2e1178dfe1afcbab57c66c48ab | |
parent | 87ecdabe77c7913386ac9be913a40b6f45395a2e (diff) |
I think this made the dropbar almost work on iOS 7.
-rw-r--r-- | MobileCydia.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index a1a1ff2..ed0f35a 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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]; |