From 4f64c463c4912058476fb034641f8e3157087e24 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Fri, 3 Mar 2023 19:35:47 -0700 Subject: [PATCH] detail: fix format not appearing in song detail Forgot to add the data to the list. --- CHANGELOG.md | 1 + .../main/java/org/oxycblt/auxio/detail/SongDetailDialog.kt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7caf488d2..cc96f1176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ #### What's Fixed - Fixed MP4-AAC files not playing due to an accidental audio extractor deletion +- Fix "format" not appearing in song properties view #### What's Improved - Accept `REPLAYGAIN_*` adjustment information on OPUS files alongside diff --git a/app/src/main/java/org/oxycblt/auxio/detail/SongDetailDialog.kt b/app/src/main/java/org/oxycblt/auxio/detail/SongDetailDialog.kt index eac8d0d3d..d5795ea9e 100644 --- a/app/src/main/java/org/oxycblt/auxio/detail/SongDetailDialog.kt +++ b/app/src/main/java/org/oxycblt/auxio/detail/SongDetailDialog.kt @@ -39,6 +39,7 @@ import org.oxycblt.auxio.playback.formatDurationMs import org.oxycblt.auxio.ui.ViewBindingDialogFragment import org.oxycblt.auxio.util.collectImmediately import org.oxycblt.auxio.util.concatLocalized +import org.oxycblt.auxio.util.logD /** * A [ViewBindingDialogFragment] that shows information about a Song. @@ -102,8 +103,9 @@ class SongDetailDialog : ViewBindingDialogFragment() { add( SongProperty( R.string.lbl_relative_path, song.path.parent.resolveName(context))) + logD(info.resolvedMimeType.resolveName(context)) info.resolvedMimeType.resolveName(context)?.let { - SongProperty(R.string.lbl_format, it) + add(SongProperty(R.string.lbl_format, it)) } add( SongProperty(