mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-11 01:40:59 +00:00
Add annotation
This commit is contained in:
parent
f74402bc94
commit
e3b7bf467e
@ -25,7 +25,7 @@ object CoilHelper {
|
||||
fun loadBitmapBlocking(
|
||||
context: Context,
|
||||
url: String?,
|
||||
placeholderResId: Int = 0
|
||||
@DrawableRes placeholderResId: Int = 0
|
||||
): Bitmap? {
|
||||
val request = getImageRequest(context, url, placeholderResId).build()
|
||||
return context.imageLoader.executeBlocking(request).drawable?.toBitmapOrNull()
|
||||
|
Loading…
Reference in New Issue
Block a user