mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
parent
4782e28588
commit
ad30808be5
1 changed files with 13 additions and 8 deletions
|
@ -249,11 +249,11 @@ static NSArray<NSString *> *NewsBlurTopSectionNames;
|
|||
}
|
||||
|
||||
if (self.searchFeedIds) {
|
||||
[self.feedTitlesTable setContentOffset:CGPointMake(0, 0)];
|
||||
// [self.feedTitlesTable setContentOffset:CGPointMake(0, 0)];
|
||||
[self.searchBar becomeFirstResponder];
|
||||
} else {
|
||||
[self.searchBar setText:@""];
|
||||
[self.feedTitlesTable setContentOffset:CGPointMake(0, CGRectGetHeight(self.searchBar.frame))];
|
||||
// [self.feedTitlesTable setContentOffset:CGPointMake(0, CGRectGetHeight(self.searchBar.frame))];
|
||||
}
|
||||
|
||||
[self.searchBar setShowsCancelButton:self.searchBar.text.length > 0 animated:YES];
|
||||
|
@ -581,6 +581,11 @@ static NSArray<NSString *> *NewsBlurTopSectionNames;
|
|||
- (void)finishLoadingFeedListWithDict:(NSDictionary *)results finished:(BOOL)finished {
|
||||
NSUserDefaults *userPreferences = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
// Doing this here avoids the search bar from appearing on initial load, but doesn't help when only a few rows visible.
|
||||
// if (!self.searchFeedIds && self.feedTitlesTable.contentOffset.y == 0) {
|
||||
// self.feedTitlesTable.contentOffset = CGPointMake(0, CGRectGetHeight(self.searchBar.frame));
|
||||
// }
|
||||
|
||||
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
||||
self.stillVisibleFeeds = [NSMutableDictionary dictionary];
|
||||
|
||||
|
@ -2100,12 +2105,12 @@ heightForHeaderInSection:(NSInteger)section {
|
|||
[self.appDelegate startOfflineQueue];
|
||||
}
|
||||
[self loadFavicons];
|
||||
if (!self.searchFeedIds && self.feedTitlesTable.contentOffset.y == 0) {
|
||||
[UIView animateWithDuration:0.2 animations:^{
|
||||
self.feedTitlesTable.contentOffset = CGPointMake(0, CGRectGetHeight(self.searchBar.frame));
|
||||
}];
|
||||
|
||||
}
|
||||
// if (!self.searchFeedIds && self.feedTitlesTable.contentOffset.y == 0) {
|
||||
// [UIView animateWithDuration:0.2 animations:^{
|
||||
// self.feedTitlesTable.contentOffset = CGPointMake(0, CGRectGetHeight(self.searchBar.frame));
|
||||
// }];
|
||||
//
|
||||
// }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue