summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm15
-rw-r--r--iPhonePrivate.h3
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;