summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-07-25 11:48:40 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:12 +0000
commit5afbb4b7d503caece8ad938cb7b53a1fd4175ce9 (patch)
tree4fa65bd108ac479de71a6b969b42c019365ae733 /Cydia.mm
parentc6ad32a6b1dff7c8843aab864e6ee53ea2be6fcf (diff)
Removed idle timer.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Cydia.mm b/Cydia.mm
index fb043ca..c48c68b 100644
--- 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];