mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
#1747 (marking a feed as read takes you to the wrong feed)
- Fixed crash with unread focus.
This commit is contained in:
parent
739c61fe4a
commit
6a47503ef4
1 changed files with 11 additions and 6 deletions
|
@ -1959,14 +1959,19 @@ heightForHeaderInSection:(NSInteger)section {
|
|||
|
||||
if (sender == nil) {
|
||||
FeedTableCell *cell = (FeedTableCell *)[self tableView:feedTitlesTable cellForRowAtIndexPath:indexPath];
|
||||
NSString *folderName = [appDelegate.dictFoldersArray objectAtIndex:indexPath.section];
|
||||
id feedId = [[appDelegate.dictFolders objectForKey:folderName] objectAtIndex:indexPath.row];
|
||||
NSString *feedIdStr = [NSString stringWithFormat:@"%@", feedId];
|
||||
BOOL hasUnread = cell.positiveCount > 0 || cell.neutralCount > 0 || cell.negativeCount > 0;
|
||||
BOOL isInactive = appDelegate.dictInactiveFeeds[feedIdStr] != nil;
|
||||
|
||||
if ([cell.reuseIdentifier isEqualToString:@"BlankCellIdentifier"] || !hasUnread || isInactive) {
|
||||
if ([cell.reuseIdentifier isEqualToString:@"BlankCellIdentifier"]) {
|
||||
foundNext = NO;
|
||||
} else {
|
||||
NSString *folderName = [appDelegate.dictFoldersArray objectAtIndex:indexPath.section];
|
||||
id feedId = [[appDelegate.dictFolders objectForKey:folderName] objectAtIndex:indexPath.row];
|
||||
NSString *feedIdStr = [NSString stringWithFormat:@"%@", feedId];
|
||||
BOOL hasUnread = cell.positiveCount > 0 || cell.neutralCount > 0 || cell.negativeCount > 0;
|
||||
BOOL isInactive = appDelegate.dictInactiveFeeds[feedIdStr] != nil;
|
||||
|
||||
if (!hasUnread || isInactive) {
|
||||
foundNext = NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (!foundNext && ![indexPath isEqual:stopAtIndexPath]);
|
||||
|
|
Loading…
Add table
Reference in a new issue