summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-29 08:22:59 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-29 08:22:59 -0700
commitd4011d57513b011ac254e7205fb7817f57866b48 (patch)
treea4b961b25c23e5efa536d632f4c4c41ddfcff01c
parentd331bfc3c3efdde44dfd4e81c50703e51f958a2f (diff)
Save application interface state when suspending.
-rw-r--r--MobileCydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index c74ed17..21414b6 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9720,6 +9720,13 @@ _end
[self saveState];
}
+- (void) applicationDidEnterBackground:(UIApplication *)application {
+ [self saveState];
+}
+
+- (void) applicationWillEnterForeground:(UIApplication *)application {
+}
+
- (void) setConfigurationData:(NSString *)data {
static Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");