]> git.saurik.com Git - cydia.git/commitdiff
Simple change to search view: if the keyboard was shown before, show it again when...
authorGrant Paul <chpwn@chpwn.com>
Mon, 6 Jun 2011 10:38:40 +0000 (03:38 -0700)
committerGrant Paul <chpwn@chpwn.com>
Mon, 6 Jun 2011 10:38:40 +0000 (03:38 -0700)
MobileCydia.mm

index 1acb5eac3e8c8928b4cb50d3f9a550bb7317b527..a2936ef2bc7718ad3e0bb0572ee92db13901b3b6 100644 (file)
@@ -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 {