Fix missing context

This commit is contained in:
tzugen 2023-04-23 11:55:08 +02:00
parent e0679f99cf
commit f59e039c49
No known key found for this signature in database
GPG Key ID: 86612695427E8B05
2 changed files with 7 additions and 3 deletions

View File

@ -51,11 +51,14 @@ class HeaderViewBinder(
val resources = context.resources
val artworkSelection = random.nextInt(item.childCount)
val size = Util.getAlbumImageSize(context)
imageLoaderProvider.executeOn {
it.loadImage(
holder.coverArtView, item.entries[artworkSelection], false,
Util.getAlbumImageSize(context)
holder.coverArtView,
item.entries[artworkSelection],
false,
size
)
}

View File

@ -96,13 +96,14 @@ class NowPlayingFragment : Fragment() {
if (file != null) {
val title = file.title
val artist = file.artist
val size = getNotificationImageSize(requireContext())
imageLoaderProvider.executeOn {
it.loadImage(
nowPlayingAlbumArtImage,
file,
false,
getNotificationImageSize(requireContext())
size
)
}