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

Abierto
#526 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #527 de @EthanJoyce — cerrado sin fusionar

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
android, kotlin
Área
mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Kotlin
Estrellas
933
Forks
104
Merge medio
2 d 10 h
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FossifyOrg/Music-Player

Todos los issues de FossifyOrg/Music-Player

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.