diff --git a/clients/ios/Classes/FeedDetailObjCViewController.m b/clients/ios/Classes/FeedDetailObjCViewController.m index 62417f308..60a373168 100644 --- a/clients/ios/Classes/FeedDetailObjCViewController.m +++ b/clients/ios/Classes/FeedDetailObjCViewController.m @@ -2320,7 +2320,7 @@ didEndSwipingSwipingWithState:(MCSwipeTableViewCellState)state } } - if (!everything && !infrequent && !saved && !read && !social && !widget) { + if ((!everything || !appDelegate.storiesCollection.isRiverView) && !infrequent && !saved && !read && !social && !widget) { NSString *manageText = [NSString stringWithFormat:@"Manage this %@", appDelegate.storiesCollection.isRiverView ? @"folder" : @"site"]; [viewController addTitle:manageText iconName:@"menu_icn_move.png" selectionShouldDismiss:NO handler:^{ @@ -2529,7 +2529,7 @@ didEndSwipingSwipingWithState:(MCSwipeTableViewCellState)state __weak MenuViewController *weakViewController = viewController; viewController.title = manageText; - if (!everything) { + if (!everything || !appDelegate.storiesCollection.isRiverView) { NSString *deleteText = [NSString stringWithFormat:@"Delete %@", appDelegate.storiesCollection.isRiverView ? @"this entire folder" : diff --git a/clients/ios/Classes/FeedsObjCViewController.m b/clients/ios/Classes/FeedsObjCViewController.m index d6514a5eb..9596745f9 100644 --- a/clients/ios/Classes/FeedsObjCViewController.m +++ b/clients/ios/Classes/FeedsObjCViewController.m @@ -1476,13 +1476,21 @@ static NSArray *NewsBlurTopSectionNames; count = limit; } +// NSLog(@"Folder %@ contains %@ feeds", folderName, @(count)); // log + return count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *folderName = [appDelegate.dictFoldersArray objectAtIndex:indexPath.section]; - id feedId = [[appDelegate.dictFolders objectForKey:folderName] objectAtIndex:indexPath.row]; + NSArray *folder = [appDelegate.dictFolders objectForKey:folderName]; + + if (indexPath.row >= folder.count) { + NSLog(@"Detected attempt to access row %@ of %@ when there are only %@; this will crash!", @(indexPath.row), folderName, @(folder.count)); // log + } + + id feedId = [folder objectAtIndex:indexPath.row]; NSString *feedIdStr = [NSString stringWithFormat:@"%@",feedId]; BOOL isSavedSearch = [appDelegate isSavedSearch:feedIdStr]; NSString *searchQuery = [appDelegate searchQueryForFeedId:feedIdStr]; diff --git a/clients/ios/Resources/Settings.bundle/Root.plist b/clients/ios/Resources/Settings.bundle/Root.plist index b7c1c6369..a66021f2c 100644 --- a/clients/ios/Resources/Settings.bundle/Root.plist +++ b/clients/ios/Resources/Settings.bundle/Root.plist @@ -606,6 +606,34 @@ DefaultValue + + FooterText + + Type + PSMultiValueSpecifier + Title + Double tap story + Titles + + Open original story + Show original text + Mark as unread + Save story + Do nothing + + DefaultValue + open_original_story + Values + + open_original_story + show_original_text + mark_unread + save_story + nothing + + Key + double_tap_story + FooterText Double tap with two fingers to use this gesture.