From 26c8a4c8c1b07a770ed97ba25af5065fe74433f2 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 31 Mar 2012 13:07:26 -0700 Subject: Move setIdleTimerDisabled: mechanism to {,un}lockSuspend:. --- MobileCydia.mm | 6 ++++-- 1 file 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"]; -- cgit v1.2.3