diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-27 05:17:11 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-27 05:18:04 -0700 |
commit | 216f3dc63617366782cdb42c58511105b43f49e0 (patch) | |
tree | 52e0979164f3cd45c58ad6c7fd5f5a4b171cd358 | |
parent | 00407aa95bc3db374611046f1e7414497345df2b (diff) |
Flail around, attacking random "suspend" messages.
-rw-r--r-- | MobileCydia.mm | 15 | ||||
-rw-r--r-- | iPhonePrivate.h | 3 |
2 files changed, 18 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]; diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 73a2bee..ab1e24e 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -210,6 +210,9 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( @end @interface UIApplication (Apple) +- (void) suspendReturningToLastApp:(BOOL)returning; +- (void) suspend; +- (void) applicationSuspend; - (void) applicationSuspend:(GSEventRef)event; - (void) _animateSuspension:(BOOL)suspend duration:(double)duration startTime:(double)start scale:(float)scale; - (void) applicationOpenURL:(NSURL *)url; |