1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-11 01:40:59 +00:00

Add annotation

This commit is contained in:
Isira Seneviratne 2024-06-26 09:45:56 +05:30
parent f74402bc94
commit e3b7bf467e

View File

@ -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()