mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-15 08:50:35 +03:00
Fix missing context
This commit is contained in:
parent
e0679f99cf
commit
f59e039c49
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user