Skip to content

Commit

Permalink
Show playlist lock only in custom order mode
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Aug 14, 2024
1 parent d356c12 commit a66188c
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,16 @@ fun LocalPlaylistScreen(
modifier = Modifier.weight(1f)
)

IconButton(
onClick = { locked = !locked },
modifier = Modifier.padding(horizontal = 6.dp)
) {
Icon(
painter = painterResource(if (locked) R.drawable.lock else R.drawable.lock_open),
contentDescription = null
)
if (sortType == PlaylistSongSortType.CUSTOM) {
IconButton(
onClick = { locked = !locked },
modifier = Modifier.padding(horizontal = 6.dp)
) {
Icon(
painter = painterResource(if (locked) R.drawable.lock else R.drawable.lock_open),
contentDescription = null
)
}
}
}
}
Expand Down

0 comments on commit a66188c

Please sign in to comment.