From a8fd135be8fcb15368d2524ad04b68a47cef85b2 Mon Sep 17 00:00:00 2001 From: David Sinclair Date: Wed, 16 Feb 2022 15:27:39 -0800 Subject: [PATCH] #1630 (search long-press opens Infrequent Sites Stories) - Fixed All Stories and Search commands. --- clients/ios/Classes/NewsBlurAppDelegate.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clients/ios/Classes/NewsBlurAppDelegate.m b/clients/ios/Classes/NewsBlurAppDelegate.m index 4656c1fbc..989606d9b 100644 --- a/clients/ios/Classes/NewsBlurAppDelegate.m +++ b/clients/ios/Classes/NewsBlurAppDelegate.m @@ -380,13 +380,16 @@ [self performSelector:@selector(delayedAddSite) withObject:nil afterDelay:0.0]; } else if ([type isEqualToString:@"AllStories"]) { [self showFeedsListAnimated:NO]; - [self.feedsViewController didSelectSectionHeaderWithTag:2]; + [self.feedsViewController didSelectSectionHeaderWithTag:NewsBlurTopSectionAllStories]; } else if ([type isEqualToString:@"Search"]) { [self showFeedsListAnimated:NO]; - [self.feedsViewController didSelectSectionHeaderWithTag:2]; + [self.feedsViewController didSelectSectionHeaderWithTag:NewsBlurTopSectionAllStories]; self.feedDetailViewController.storiesCollection.searchQuery = @""; self.feedDetailViewController.storiesCollection.savedSearchQuery = nil; self.feedDetailViewController.storiesCollection.inSearch = YES; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ + [self.feedDetailViewController.searchBar becomeFirstResponder]; + }); } else { handled = NO; }