Skip to content

Fix crash on search with duplicate playlist keys#127

Merged
theovilardo merged 1 commit intomasterfrom
fix/search-crash-duplicate-key
Sep 8, 2025
Merged

Fix crash on search with duplicate playlist keys#127
theovilardo merged 1 commit intomasterfrom
fix/search-crash-duplicate-key

Conversation

@theovilardo
Copy link
Owner

The app was crashing with an IllegalArgumentException when the search results contained playlists with duplicate IDs. This was because the LazyColumn key was generated using only the playlist ID, which was not guaranteed to be unique.

This change modifies the key generation for playlists in the search results to include the item's index, ensuring that the key is always unique.

The app was crashing with an `IllegalArgumentException` when the search results contained playlists with duplicate IDs. This was because the `LazyColumn` key was generated using only the playlist ID, which was not guaranteed to be unique.

This change modifies the key generation for playlists in the search results to include the item's index, ensuring that the key is always unique.
@theovilardo theovilardo merged commit e693e95 into master Sep 8, 2025
@theovilardo theovilardo deleted the fix/search-crash-duplicate-key branch October 16, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant