summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2011-01-29 16:28:11 -0800
committerGrant Paul <chpwn@chpwn.com>2011-01-29 16:28:11 -0800
commita23207d2b4e9986a5f0ef23dafb9ef31cd080319 (patch)
tree90df4d94ed4b753bfc9261233a37114952149a77
parent293c95d6e064c4ac092f5510e6015e637add11ae (diff)
Fix refreshing bar on iOS 3.0+ by using the CoreFoundation version to check versioning at runtime.
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 849d3db..0076c42 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6370,7 +6370,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
CGRect barframe([refreshbar_ frame]);
- if (false) // XXX: _UIApplicationLinkedOnOrAfter(4)
+ if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_3_0) // XXX: _UIApplicationLinkedOnOrAfter(4)
barframe.origin.y = [self statusBarHeight];
else
barframe.origin.y = 0;