summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-03-31 13:07:26 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2012-03-31 13:30:18 -0700
commit26c8a4c8c1b07a770ed97ba25af5065fe74433f2 (patch)
tree7586301bc6300240cdcfc068d892cdf8faf50866
parent5e17a7344aeaea01178fa53bd69fab5baef75f73 (diff)
Move setIdleTimerDisabled: mechanism to {,un}lockSuspend:.
-rw-r--r--MobileCydia.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index bd18af1..487623a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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"];