From: Grant Paul Date: Mon, 6 Jun 2011 10:38:40 +0000 (-0700) Subject: Simple change to search view: if the keyboard was shown before, show it again when... X-Git-Tag: v1.1.2~6 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/058813ae78aec1b25c7c44b2a6188b7ae2264107?ds=inline Simple change to search view: if the keyboard was shown before, show it again when you go back to it. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 1acb5eac..a2936ef2 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8050,13 +8050,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [self reloadData]; } -- (void) viewWillAppear:(BOOL)animated { - [super viewWillAppear:animated]; - - if ([self filter] == @selector(isUnfilteredAndSelectedForBy:)) - [self useSearch]; -} - - (void) searchBarTextDidBeginEditing:(UISearchBar *)searchBar { [self setObject:[search_ text] forFilter:@selector(isUnfilteredAndSelectedForBy:)]; [self clearData]; @@ -8134,6 +8127,9 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [textField setEnablesReturnKeyAutomatically:NO]; [[self navigationItem] setTitleView:textField]; } + + if ([self isSummarized]) + [search_ becomeFirstResponder]; } - (void) reloadData {