diff options
author | Grant Paul <chpwn@chpwn.com> | 2010-10-03 13:19:23 -0700 |
---|---|---|
committer | Jay Freeman <saurik@Jay-Freemans-MacBook-Pro.local> | 2010-10-04 00:12:22 -0700 |
commit | ca584c15d05be9f363adc63556d24e49c02e6323 (patch) | |
tree | e41d8493e4880bc0424ffce3c22e60e18f5cffa0 /Cydia.mm | |
parent | 31bfe325beb05311219eada7a939ec10321b541b (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.mm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 { |