Off-by-one error when using "play next" action

Aperta
#526 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #527 di @EthanJoyce — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
android, kotlin
Ambito
mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs triage
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
  1. Have a library of at least three different songs
  2. Start playing a song, open track queue, arrange songs such that the currently playing song is in the middle (see screenshot 1 below)
  3. Return to library view, select song that's before the currently playing song, and select the "Play next" action
  4. The selected song is now after the next song, rather than taking the place of the next song (see screenshot 2)

Screenshot 1:
ignoreImageMinify

Screenshot 2:
ignoreImageMinify

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

Lingua principale
Kotlin
Stelle
933
Fork
104
Merge medio
2g 10h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FossifyOrg/Music-Player

Tutte le issue di FossifyOrg/Music-Player

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.