summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 01:58:38 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 01:58:38 -0800
commit8c9453daccf787e1bb9cf15dd7df38864e66a568 (patch)
tree47169fbdd7cd0b4c53d93757bdf63520ede60054 /MobileCydia.mm
parent2925cbba739b54942aecf6e5316c27a021445ae3 (diff)
There is no reason HUDs can't rotate correctly.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 2da0aae..86b2e8d 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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];
}