]> git.saurik.com Git - cydia.git/commitdiff
Code, not comments, to control if the navigation bar on the homepage is hidden.
authorGrant Paul <chpwn@chpwn.com>
Wed, 29 Dec 2010 06:00:04 +0000 (22:00 -0800)
committerGrant Paul <chpwn@chpwn.com>
Wed, 29 Dec 2010 06:00:04 +0000 (22:00 -0800)
MobileCydia.mm

index 52f2ec70ab5aa393e07d08bf05ec303340183fb4..18fbe491b1206ba7a21c53b9719ed56f416ea1f2 100644 (file)
@@ -6501,6 +6501,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
 @implementation HomeController
 
++ (BOOL)shouldHideNavigationBar {
+    return NO;
+}
+
 - (void) _setMoreHeaders:(NSMutableURLRequest *)request {
     [super _setMoreHeaders:request];
 
@@ -6531,12 +6535,16 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
 - (void) viewWillAppear:(BOOL)animated {
     [super viewWillAppear:animated];
-    //[[self navigationController] setNavigationBarHidden:YES animated:animated];
+
+    if ([[self class] shouldHideNavigationBar])
+        [[self navigationController] setNavigationBarHidden:YES animated:animated];
 }
 
 - (void) viewWillDisappear:(BOOL)animated {
     [super viewWillDisappear:animated];
-    //[[self navigationController] setNavigationBarHidden:NO animated:animated];
+
+    if ([[self class] shouldHideNavigationBar])
+        [[self navigationController] setNavigationBarHidden:NO animated:animated];
 }
 
 - (id) init {