]> git.saurik.com Git - cydia.git/commitdiff
Move setIdleTimerDisabled: mechanism to {,un}lockSuspend:.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 31 Mar 2012 20:07:26 +0000 (13:07 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 31 Mar 2012 20:30:18 +0000 (13:30 -0700)
MobileCydia.mm

index bd18af149beb6fafc4080a48e489a9351d18db93..487623a613b929a56858a27febb7bd6cc99f0fd2 100644 (file)
@@ -9350,11 +9350,15 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
     if (locked_++ == 0) {
         if ($SBSSetInterceptsMenuButtonForever != NULL)
             (*$SBSSetInterceptsMenuButtonForever)(true);
+
+        [self setIdleTimerDisabled:YES];
     }
 }
 
 - (void) unlockSuspend {
     if (--locked_ == 0) {
+        [self setIdleTimerDisabled:NO];
+
         if ($SBSSetInterceptsMenuButtonForever != NULL)
             (*$SBSSetInterceptsMenuButtonForever)(false);
     }
@@ -10099,8 +10103,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
 }
 
 - (void) stash {
-    [self setIdleTimerDisabled:YES];
-
     [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
     UpdateExternalStatus(1);
     [self yieldToSelector:@selector(system:) withObject:@"/usr/libexec/cydia/free.sh"];