From d96a089a9eeb0979d8d27dbc999afba7025cf54e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 11 Jan 2026 01:48:27 +0000 Subject: [PATCH] Simplify genre visibility logic per code review Co-authored-by: OxygenCobalt <65370175+OxygenCobalt@users.noreply.github.com> --- .../java/org/oxycblt/auxio/detail/ArtistDetailFragment.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/detail/ArtistDetailFragment.kt b/app/src/main/java/org/oxycblt/auxio/detail/ArtistDetailFragment.kt index f72501c49..1ea4414ba 100644 --- a/app/src/main/java/org/oxycblt/auxio/detail/ArtistDetailFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/detail/ArtistDetailFragment.kt @@ -150,11 +150,9 @@ class ArtistDetailFragment : DetailFragment() { // Information about the artist's genre(s) map to the sub-head text // Hide the subhead if all genres are unknown (no genre tags in music files) val hasKnownGenres = artist.genres.any { it.name is Name.Known } - binding.detailSubhead.apply { - isVisible = hasKnownGenres - if (hasKnownGenres) { - text = artist.genres.resolveNames(context) - } + binding.detailSubhead.isVisible = hasKnownGenres + if (hasKnownGenres) { + binding.detailSubhead.text = artist.genres.resolveNames(context) } // In the case that this header used to he configured to have no songs,