]> git.saurik.com Git - cydia.git/commitdiff
Save application interface state when suspending.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 29 Oct 2014 15:22:59 +0000 (08:22 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 29 Oct 2014 15:22:59 +0000 (08:22 -0700)
MobileCydia.mm

index c74ed17ad0837da807d4efbaafe2ad9d580cf79d..21414b6c2800672efdd8cea644278b04f32c90e8 100644 (file)
@@ -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])$");