pocket-casts-ios icon indicating copy to clipboard operation
pocket-casts-ios copied to clipboard

Deselect Chapters: crash when scrolling

Open leandroalonso opened this issue 11 months ago • 1 comments

From Sentry:

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>>

leandroalonso avatar Mar 25 '24 20:03 leandroalonso

Probably happens because scrollToCurrentlyPlayingChapter relies on the chapter index, so if the user deselects any chapters these indexes are not accurate anymore.

leandroalonso avatar Mar 25 '24 20:03 leandroalonso