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 resources = context.resources
val artworkSelection = random.nextInt(item.childCount) val artworkSelection = random.nextInt(item.childCount)
val size = Util.getAlbumImageSize(context)
imageLoaderProvider.executeOn { imageLoaderProvider.executeOn {
it.loadImage( it.loadImage(
holder.coverArtView, item.entries[artworkSelection], false, holder.coverArtView,
Util.getAlbumImageSize(context) item.entries[artworkSelection],
false,
size
) )
} }

View File

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