Off-by-one error when using "play next" action
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #527 by @EthanJoyce — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start by reading the queue handling code for the “Play next” action and how it adjusts the insertion position when the selected song is before the currently playing song. Reproduce the three song scenario from the issue and check the resulting queue order. Done means the selected song is immediately after the currently playing song; issue #527 is a closed, unmerged pull request linked to this report.
Written by the indexing model from the issue text.
Description
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
1.8.5
Affected Android/Custom ROM version
GrapheneOS (2026110701; Android 17), Pixel Emulator (BE4B.251210.005; Android 16)
Affected device model
Pixel 8 Pro, Pixel Emulator
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
- Have a library of at least three different songs
- Start playing a song, open track queue, arrange songs such that the currently playing song is in the middle (see screenshot 1 below)
- Return to library view, select song that's before the currently playing song, and select the "Play next" action
- The selected song is now after the next song, rather than taking the place of the next song (see screenshot 2)
Screenshot 1:
Screenshot 2:
Expected behavior
The song should be next in the track queue
Actual behavior
It is instead second-next (i.e. there's an off-by-one error in the queuing logic)
Screenshots/Screen recordings
No response
Additional information
No response
- Dominant language
- Kotlin
- Stars
- 933
- Forks
- 104
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FossifyOrg/Music-Player
-
feature request needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
FossifyOrg/Music-Player#515 ·
Maintainers usually reply within 1 day
-
feature request needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
FossifyOrg/Music-Player#479 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
FossifyOrg/Music-Player#424 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
FossifyOrg/Music-Player#423 · 1 comment ·
Maintainers usually reply within 1 day
-
Add info button on current playing fileMay be free again A pull request for this issue was closed without being merged. Openfeature request needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
FossifyOrg/Music-Player#29 · 13 comments ·
Maintainers usually reply within 1 day
All issues in FossifyOrg/Music-Player
Similar issues
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
grote/Transportr#1029 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
TeamAmaze/AmazeFileManager#4800 ·
Maintainers usually reply within 1 day
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
FossifyOrg/Gallery#1235 ·
Maintainers usually reply within 1 day
-
bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsotto/sotto-authenticator#139 ·
Maintainers usually reply within 1 day
-
enhancement module:webview p3
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
NucleusFramework/Nucleus#1004 ·
Maintainers usually reply within 1 day