summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-05-17 15:48:28 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-05-17 15:48:28 -0700
commit237c3d1c44503c9be4762b43a841b011f5faeebb (patch)
tree39e4b53898c737703d01389567179af101f5d770
parentdd4e70dc2d92c8e83eed540771ae0c7d57d2b4ef (diff)
If using setRootViewController: don't addSubview:.
-rw-r--r--MobileCydia.mm10
1 files changed, 7 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 8f440f5..32031c4 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8901,10 +8901,13 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
if (emulated_ == nil)
return;
- [window_ addSubview:[tabbar_ view]];
if ([window_ respondsToSelector:@selector(setRootViewController:)])
[window_ setRootViewController:tabbar_];
- [[emulated_ view] removeFromSuperview];
+ else {
+ [window_ addSubview:[tabbar_ view]];
+ [[emulated_ view] removeFromSuperview];
+ }
+
emulated_ = nil;
[window_ setUserInteractionEnabled:YES];
}
@@ -9594,9 +9597,10 @@ _trace();
[self setupViewControllers];
emulated_ = [[[CydiaLoadingViewController alloc] init] autorelease];
- [window_ addSubview:[emulated_ view]];
if ([window_ respondsToSelector:@selector(setRootViewController:)])
[window_ setRootViewController:emulated_];
+ else
+ [window_ addSubview:[emulated_ view]];
[self performSelector:@selector(loadData) withObject:nil afterDelay:0];
_trace();