mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-06 10:33:05 +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 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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user