Fixed full theme continuous crash
This commit is contained in:
parent
8099eb0012
commit
a43946210f
1 changed files with 9 additions and 6 deletions
|
@ -133,12 +133,15 @@ class FullPlayerFragment : AbsPlayerFragment(R.layout.fragment_full) {
|
||||||
private fun updateArtistImage() {
|
private fun updateArtistImage() {
|
||||||
libraryViewModel.artist(MusicPlayerRemote.currentSong.artistId)
|
libraryViewModel.artist(MusicPlayerRemote.currentSong.artistId)
|
||||||
.observe(viewLifecycleOwner, { artist ->
|
.observe(viewLifecycleOwner, { artist ->
|
||||||
|
if (artist.id != -1L) {
|
||||||
GlideApp.with(requireActivity()).asBitmapPalette().artistImageOptions(artist)
|
GlideApp.with(requireActivity()).asBitmapPalette().artistImageOptions(artist)
|
||||||
.load(RetroGlideExtension.getArtistModel(artist))
|
.load(RetroGlideExtension.getArtistModel(artist))
|
||||||
.into(object : RetroMusicColoredTarget(binding.artistImage) {
|
.into(object : RetroMusicColoredTarget(binding.artistImage) {
|
||||||
override fun onColorReady(colors: MediaNotificationProcessor) {
|
override fun onColorReady(colors: MediaNotificationProcessor) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue