From 0a6531c75c32d7ad0c5d7ba2e3a19b6c58743006 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Sun, 3 Oct 2010 13:19:23 -0700 Subject: [PATCH] Apparently sometimes the superclass does implement -applicationWillResignActive:. So, if it does, we should call it! --- Cydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cydia.mm b/Cydia.mm index eb17d6a1..a51d42ec 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 { -- 2.45.2