]> git.saurik.com Git - cydia.git/commitdiff
Remove obsolete UIProgressBar: fix for iOS 6.0.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 11 Jul 2012 20:12:22 +0000 (13:12 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 11 Jul 2012 20:12:22 +0000 (13:12 -0700)
MobileCydia.mm

index 2371e26d9a1ab0e7b76e0e83b24794de1387d774..22ed6cb2178283ee3eac18e6abce09eef7a56d42 100644 (file)
@@ -6754,7 +6754,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
 @interface RefreshBar : UINavigationBar {
     _H<UIProgressIndicator> indicator_;
     _H<UITextLabel> prompt_;
-    _H<UIProgressBar> progress_;
     _H<UINavigationButton> cancel_;
 }
 
@@ -6769,13 +6768,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
     frame.origin.y = ([self frame].size.height - frame.size.height) / 2;
     [cancel_ setFrame:frame];
 
-    CGSize prgsize = {75, 100};
-    CGRect prgrect = {{
-        [self frame].size.width - prgsize.width - 10,
-        ([self frame].size.height - prgsize.height) / 2
-    } , prgsize};
-    [progress_ setFrame:prgrect];
-
     CGSize indsize([UIProgressIndicator defaultSizeForStyle:[indicator_ activityIndicatorViewStyle]]);
     unsigned indoffset = ([self frame].size.height - indsize.height) / 2;
     CGRect indrect = {{indoffset, indoffset}, indsize};
@@ -6818,11 +6810,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
         [prompt_ setFont:[UIFont systemFontOfSize:15]];
         [self addSubview:prompt_];
 
-        progress_ = [[[UIProgressBar alloc] initWithFrame:CGRectZero] autorelease];
-        [progress_ setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin];
-        [(UIProgressBar *) progress_ setStyle:0];
-        [self addSubview:progress_];
-
         cancel_ = [[[UINavigationButton alloc] initWithTitle:UCLocalize("CANCEL") style:UINavigationButtonStyleHighlighted] autorelease];
         [cancel_ setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin];
         [cancel_ addTarget:delegate action:@selector(cancelPressed) forControlEvents:UIControlEventTouchUpInside];
@@ -6841,7 +6828,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
 
 - (void) start {
     [prompt_ setText:UCLocalize("UPDATING_DATABASE")];
-    [progress_ setProgress:0];
 }
 
 - (void) stop {
@@ -6853,7 +6839,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
 }
 
 - (void) setProgress:(float)progress {
-    [progress_ setProgress:progress];
 }
 
 @end