]> git.saurik.com Git - cydia.git/commitdiff
Removed idle timer.
authorJay Freeman (saurik) <saurik@saurk.com>
Fri, 25 Jul 2008 11:48:40 +0000 (11:48 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:08:12 +0000 (07:08 +0000)
Cydia.mm

index fb043ca48db0a6fd5dab3e23359b7197e0cbab8f..c48c68b008307b7a0a755f4a1090eb8d1d819663 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -142,6 +142,10 @@ extern "C" {
 #endif
 /* }}} */
 
+@interface UIApplication (IdleTimer)
+- (void) setIdleTimerDisabled:(char)arg0;
+@end
+
 #ifdef __OBJC2__
 typedef enum {
     kUIProgressIndicatorStyleMediumWhite = 1,
@@ -2460,7 +2464,6 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
 #endif
 
     [delegate_ setStatusBarShowsProgress:NO];
-    //[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
 
     running_ = NO;
 }
@@ -5677,6 +5680,8 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
         readlink("/usr/libexec", NULL, 0) == -1 && errno == EINVAL ||
         readlink("/usr/share", NULL, 0) == -1 && errno == EINVAL
     ) {
+        [self setIdleTimerDisabled:YES];
+
         hud_ = [[UIProgressHUD alloc] initWithWindow:window_];
         [hud_ setText:@"Reorganizing\n\nWill Automatically\nRestart When Done"];
         [hud_ show:YES];