summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-10-03 13:19:23 -0700
committerJay Freeman <saurik@Jay-Freemans-MacBook-Pro.local>2010-10-04 00:12:22 -0700
commitca584c15d05be9f363adc63556d24e49c02e6323 (patch)
treee41d8493e4880bc0424ffce3c22e60e18f5cffa0 /Cydia.mm
parent31bfe325beb05311219eada7a939ec10321b541b (diff)
Apparently sometimes the superclass does implement -applicationWillResignActive:. So, if it does, we should call it!
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cydia.mm b/Cydia.mm
index eb17d6a..a51d42e 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -8544,9 +8544,12 @@ static _finline void _setHomePage(Cydia *self) {
}
}
-- (void) applicationWillResignActive:(UIApplication *)application {
+- (void) applicationWillResignActive:(UIApplication *)application {
// Stop refreshing if you get a phone call or lock the device.
if ([container_ updating]) [container_ cancelUpdate];
+
+ if ([[self superclass] instancesRespondToSelector:@selector(applicationWillResignActive:)])
+ [super applicationWillResignActive:application];
}
- (void) applicationDidFinishLaunching:(id)unused {