zyrouge / symphony

🎵 Lightweight, elegant music player for Android 9+.
https://zyrouge.github.io/symphony/
GNU Affero General Public License v3.0
1.18k stars 78 forks source link

[Bug] Index exception when pressing 'delete song' button in an already empty queue #578

Open Strophox opened 3 months ago

Strophox commented 3 months ago

Description

IndexOutOfBoundsException when interacting with buttons while viewing current queue.

Steps to Reproduce

  1. Play some song(s)
  2. View currently playing Queue:
  3. Tick/select some song(s) (*turns the floppy disk icon ('save as playlist') into trashcan ('delete song(s)'))
  4. Press the triple horizontal bar icon ('empty queue')
  5. Bug: pressing the trashcan icon now with the empty queue causes an IndexOutOfBoundsException

Expected Behavior

Any behaviour that does not lead the application to crash, e.g.:

Screenshots

Screenshot_20240623-031632 Screenshot_20240623-031629

Device

Additional Context

-

Checklist