Open owusukasante opened 1 year ago
I realised that the album art does not update on Android 13 in version 1.0.1. After a little digging, I found that the getCurrentLargeIcon method in the RadioPlayerService.kt always returns the defaultArtwork as seen below
override fun getCurrentLargeIcon(player: Player, callback: BitmapCallback): Bitmap? { metadataArtwork = downloadImage(currentMetadata?.get(2)) metadataArtwork?.let { callback.onBitmap(it) } return defaultArtwork; }
Changing it to the following solves the problem
override fun getCurrentLargeIcon(player: Player, callback: BitmapCallback): Bitmap? { metadataArtwork = downloadImage(currentMetadata?.get(2)) metadataArtwork?.let { callback.onBitmap(it) } return if(metadataArtwork == null) defaultArtwork else metadataArtwork; }
Has been updated to v2. Please check the master branch.
@owusukasante can you add a PR to this ?
I realised that the album art does not update on Android 13 in version 1.0.1. After a little digging, I found that the getCurrentLargeIcon method in the RadioPlayerService.kt always returns the defaultArtwork as seen below
Changing it to the following solves the problem