Skip to content

Fix crash when scrolling to the bottom of the Songs tab list (from Library) - #222

Closed
rivaldi8 wants to merge 1 commit into
timusus:mainfrom
rivaldi8:fix/alexm-crash-scrolling-songs-list
Closed

rivaldi8 wants to merge 1 commit into
timusus:mainfrom
rivaldi8:fix/alexm-crash-scrolling-songs-list

Conversation

@rivaldi8

Copy link
Copy Markdown
Contributor

This happened when scrolling by dragging the scrollbar handle.

It was due to not taking into account the first item is Shuffle, which isn't in the songs list. Apply the same fix as in the Albums list.

…brary)

This happened when scrolling by dragging the scrollbar handle.

It was due to not taking into account the first item is Shuffle, which
isn't in the songs list. Apply the same fix as in the Albums list.
timusus pushed a commit that referenced this pull request Sep 24, 2026
#222)

The Songs list fast-scroller's popup text lookup indexed directly into
the songs list by the scroller's row index, which doesn't account for
the leading Shuffle header row. Scrolling to the bottom of the list
could index past the end. AlbumList.kt already offsets by 1 for its
own Shuffle header; apply the same offset and bounds check here.

Changelog: Fixed a crash when fast-scrolling to the bottom of the Songs list
@timusus

timusus commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Landed on main as 880b57e (ported onto current main). Verified by unit tests plus the full emulator suite, which now carries a check for this change. Thanks @alexmgraca!

@timusus timusus closed this Sep 24, 2026
@rivaldi8
rivaldi8 deleted the fix/alexm-crash-scrolling-songs-list branch September 26, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants