summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2011-06-06 03:38:40 -0700
committerGrant Paul <chpwn@chpwn.com>2011-06-06 03:38:40 -0700
commit058813ae78aec1b25c7c44b2a6188b7ae2264107 (patch)
treee628c04d0a8477995bc0087ac3957d094d4b273e /MobileCydia.mm
parent111ee7bc600f63fee72bef7ab614f37aa6419491 (diff)
Simple change to search view: if the keyboard was shown before, show it again when you go back to it.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm10
1 files changed, 3 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1acb5ea..a2936ef 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 {