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

Đang mở
#526 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #527 của @EthanJoyce — đã đóng, không merge

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Kotlin
Star
933
Fork
104
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FossifyOrg/Music-Player

Tất cả issue của FossifyOrg/Music-Player

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.