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 ->
|
||||||
GlideApp.with(requireActivity()).asBitmapPalette().artistImageOptions(artist)
|
if (artist.id != -1L) {
|
||||||
.load(RetroGlideExtension.getArtistModel(artist))
|
GlideApp.with(requireActivity()).asBitmapPalette().artistImageOptions(artist)
|
||||||
.into(object : RetroMusicColoredTarget(binding.artistImage) {
|
.load(RetroGlideExtension.getArtistModel(artist))
|
||||||
override fun onColorReady(colors: MediaNotificationProcessor) {
|
.into(object : RetroMusicColoredTarget(binding.artistImage) {
|
||||||
}
|
override fun onColorReady(colors: MediaNotificationProcessor) {
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue