Skip to content

Commit

Permalink
fix: removed delete in auto playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Malopieds committed Jun 30, 2024
1 parent 7dec0c9 commit a2e694e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ fun SelectionSongMenu(
}
}

if (songPosition != null) {
if (songPosition?.size != 0) {
GridMenuItem(
icon = R.drawable.delete,
title = R.string.delete
) {
onDismiss()
var i = 0
database.query {
songPosition.forEach {cur ->
songPosition?.forEach {cur ->
move(cur.playlistId, cur.position - i, Int.MAX_VALUE)
delete(cur.copy(position = Int.MAX_VALUE))
i++
Expand Down

0 comments on commit a2e694e

Please sign in to comment.