From 57e5156d6782bf715dd279f78ef1ff587abe38fa Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Thu, 30 Sep 2010 23:26:15 -0700 Subject: [PATCH] Fixed refreshing on sleep/call/lock. --- Cydia.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cydia.mm b/Cydia.mm index 4cb84eb0..6c316248 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -8400,6 +8400,13 @@ static _finline void _setHomePage(Cydia *self) { } } +- (void) applicationWillResignActive:(UIApplication *)application { + // Stop refreshing if you get a phone call or lock the device. + if ([container_ updating]) [container_ cancelUpdate]; + + [super applicationWillResignActive:application]; +} + - (void) applicationDidFinishLaunching:(id)unused { [CYBrowserController _initialize]; -- 2.45.2