Skip to content

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

@Strophox

Description

@Strophox

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.:

  • Pressing the trashcan icon does nothing (at step 5.),
  • or, the trashcan icon reverts to the floppy disk icon state automatically (at step 4.)

Screenshots

Screenshot_20240623-031632
Screenshot_20240623-031629

Device

  • Device: Fairphone 4
  • OS: Android 13
  • Version: Symphony v2024.3.110

Additional Context

-

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: doneHas been fixed or implementedtype: bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions