summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-27 05:17:11 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-27 05:18:04 -0700
commit216f3dc63617366782cdb42c58511105b43f49e0 (patch)
tree52e0979164f3cd45c58ad6c7fd5f5a4b171cd358 /MobileCydia.mm
parent00407aa95bc3db374611046f1e7414497345df2b (diff)
Flail around, attacking random "suspend" messages.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm15
1 files changed, 15 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index a6d5e89..83783e3 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9511,6 +9511,21 @@ _end
return true;
}
+- (void) suspendReturningToLastApp:(BOOL)returning {
+ if ([self isSafeToSuspend])
+ [super suspendReturningToLastApp:returning];
+}
+
+- (void) suspend {
+ if ([self isSafeToSuspend])
+ [super suspend];
+}
+
+- (void) applicationSuspend {
+ if ([self isSafeToSuspend])
+ [super applicationSuspend];
+}
+
- (void) applicationSuspend:(__GSEvent *)event {
if ([self isSafeToSuspend])
[super applicationSuspend:event];