pocket-casts-ios
pocket-casts-ios copied to clipboard
Deselect Chapters: crash when scrolling
Attempted to scroll the table view to an out-of-bounds row (13) when there are only 10 rows in section 0. Table view: <UITableView: 0x1431c0600; frame = (0 0; 393 735); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x301863ed0>; backgroundColor = UIExtendedSRGBColorSpace 0 0 0 1; layer = <CALayer: 0x301788e20>; contentOffset: {0, 0}; contentSize: {393, 544}; adjustedContentInset: {0, 0, 34, 0}; dataSource: <podcasts.ChaptersViewController: 0x145322e10>>
Probably happens because scrollToCurrentlyPlayingChapter
relies on the chapter index, so if the user deselects any chapters these indexes are not accurate anymore.