Skip to content

Commit

Permalink
menu: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcarter11 committed Dec 7, 2024
1 parent de8a173 commit d411170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/dd3boh/outertune/ui/menu/SongMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ fun SongMenu(
GridMenuItem(
icon = R.drawable.artist,
title = R.string.view_artist,
enabled = song.artists.size > 1
enabled = song.artists.isNotEmpty()
) {
if (song.artists.size == 1) {
navController.navigate("artist/${song.artists[0].id}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ fun YouTubeSongMenu(
GridMenuItem(
icon = Icons.Rounded.Person,
title = R.string.view_artist,
enabled = song.artists.size > 1
enabled = song.artists.isNotEmpty()
) {
if (artists.size == 1) {
navController.navigate("artist/${artists[0].id}")
Expand Down

0 comments on commit d411170

Please sign in to comment.