Skip to content

Fix/Make only one instance of a song have the playing icon - #2290

Open
laoluogun wants to merge 1 commit into
maxrave-dev:devfrom
laoluogun:fix/multiple-playing-icons
Open

Fix/Make only one instance of a song have the playing icon#2290
laoluogun wants to merge 1 commit into
maxrave-dev:devfrom
laoluogun:fix/multiple-playing-icons

Conversation

@laoluogun

Copy link
Copy Markdown
Contributor

Hi, when inside the queue tab, if you have multiple of the same song queued up, each instance of the song will display as currently playing - caused by isPlaying = track.videoId == songEntity?.videoId,

Before the fix :

Multiple.Playing.Icons.Before.Fix.mp4

I fixed this by having tracking currentSongIndex and changing isPlaying to isPlaying = index == currentSongIndex.

After the fix:

Multiple.Playing.Icons.After.Fix.mp4

Note: to demonstrate the bug, the recordings were taken on a build that features a playNext duplication fix (maxrave-dev/core/pull/15) to consistently get duplicate tracks. This pull request is independent of the other, but was useful for testing.

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.

1 participant