summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-09-30 23:26:15 -0700
committerJay Freeman <saurik@Jay-Freemans-MacBook-Pro.local>2010-10-04 00:12:21 -0700
commit7eff7ea607feee278f0216f76a9eeb2705d74451 (patch)
tree9e36fde59bbc5f67ae94ce036a6f5f92250ad372 /Cydia.mm
parentb9096873665b536126f1fc5c0c18575400026c5c (diff)
Fixed refreshing on sleep/call/lock.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 4cb84eb..6c31624 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];