Deleting song(s) from playlist search deletes wrong song(s)
Description
When using the search menu inside a playlist, if you try to delete any song(s) from the playlist, it will delete different song(s) than what was selected.
Selecting the Nth item in the search list will delete the Nth song in the playlist, not the actual song selected.
This includes multiple selections. Deleting songs 1,3,5 in the search list will delete songs 1,3,5 in the playlist.
Expected behavior
The song that was selected should be deleted.
Actual behavior
The song with the same index as the one selected in search is deleted.
Steps to reproduce
- Create a new playlist with multiple songs.
- Open the playlist, click the search button in the corner.
- Type in the name of a song in the middle of the playlist.
- Click the 3 dots next to the first song in the search list and click Delete.
- Exit the search menu.
- See that the deleted song is still in the playlist, notice the first song in the playlist was deleted instead.
Context
App version
3.5.1
Android version
12 (One UI 4.1)
Device model
Samsung Galaxy S22 Ultra
App mode
Smartphone