From: Grant Paul Date: Wed, 29 Dec 2010 06:00:04 +0000 (-0800) Subject: Code, not comments, to control if the navigation bar on the homepage is hidden. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/bd1818c90be1370d5148d84602ad0e71cb18bf19 Code, not comments, to control if the navigation bar on the homepage is hidden. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 52f2ec70..18fbe491 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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 {