]> git.saurik.com Git - cydia.git/commitdiff
There is no reason HUDs can't rotate correctly.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 10 Mar 2011 09:58:38 +0000 (01:58 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 10 Mar 2011 09:58:38 +0000 (01:58 -0800)
MobileCydia.mm
iPhonePrivate.h

index 2da0aae42410a912c696221ee180b550ec5d06de..86b2e8d22b703dc6f6fd62ffed0f51bfb1e1b5dc 100644 (file)
@@ -9367,7 +9367,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 }
 
 - (UIProgressHUD *) addProgressHUD {
-    UIProgressHUD *hud([[[UIProgressHUD alloc] initWithWindow:window_] autorelease]);
+    UIProgressHUD *hud([[[UIProgressHUD alloc] init] autorelease]);
     [hud setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
 
     [window_ setUserInteractionEnabled:NO];
@@ -9379,7 +9379,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     UIView *view([target view]);
     [view addSubview:hud];
 
-    [hud show:YES];
+    [hud showInView:[tabbar_ view]];
 
     ++locked_;
     return hud;
@@ -9387,7 +9387,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
 - (void) removeProgressHUD:(UIProgressHUD *)hud {
     --locked_;
-    [hud show:NO];
+    [hud hide];
     [hud removeFromSuperview];
     [window_ setUserInteractionEnabled:YES];
 }
index fdcb147bda78489037530de2913c2ea156d69543..d3fc74141ee31322721465147c041fb97f041b47 100644 (file)
@@ -61,9 +61,9 @@ typedef enum {
 @end
 
 @interface UIProgressHUD : UIView
-- (id) initWithWindow:(UIWindow *)window;
+- (void) hide;
 - (void) setText:(NSString *)text;
-- (void) show:(BOOL)show;
+- (void) showInView:(UIView *)view;
 @end
 
 @interface UIProgressIndicator : UIView