Fix playing album display bug
Fix an issue where an album will not immediately show up as playing if you play it from the artist UI.
This commit is contained in:
parent
55af5790b8
commit
ec310a5b93
2 changed files with 1 additions and 3 deletions
|
@ -14,7 +14,6 @@ import org.oxycblt.auxio.music.BaseModel
|
|||
import org.oxycblt.auxio.music.Genre
|
||||
import org.oxycblt.auxio.music.MusicStore
|
||||
import org.oxycblt.auxio.music.Song
|
||||
import org.oxycblt.auxio.playback.state.PlaybackMode
|
||||
import org.oxycblt.auxio.ui.ActionMenu
|
||||
import org.oxycblt.auxio.ui.requireCompatActivity
|
||||
|
||||
|
@ -104,7 +103,7 @@ class ArtistDetailFragment : DetailFragment() {
|
|||
|
||||
// Highlight albums if they are being played
|
||||
playbackModel.parent.observe(viewLifecycleOwner) { parent ->
|
||||
if (playbackModel.mode.value == PlaybackMode.IN_ALBUM && parent is Album?) {
|
||||
if (parent is Album?) {
|
||||
detailAdapter.setCurrentAlbum(parent, binding.detailRecycler)
|
||||
} else {
|
||||
detailAdapter.setCurrentAlbum(null, binding.detailRecycler)
|
||||
|
|
|
@ -195,7 +195,6 @@
|
|||
<item name="fontFamily">@font/inter_semibold</item>
|
||||
<item name="textAllCaps">false</item>
|
||||
<item name="cornerRadius">0dp</item>
|
||||
|
||||
</style>
|
||||
|
||||
<!-- An "Unimportant" material button, used for the "Play" button -->
|
||||
|
|
Loading…
Reference in a new issue