From e3b7bf467e7c4205a4af76518a68c4d54a75b776 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Wed, 26 Jun 2024 09:45:56 +0530 Subject: [PATCH] Add annotation --- app/src/main/java/org/schabi/newpipe/util/image/CoilHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/image/CoilHelper.kt b/app/src/main/java/org/schabi/newpipe/util/image/CoilHelper.kt index 62c60c92e..1f49a4a4f 100644 --- a/app/src/main/java/org/schabi/newpipe/util/image/CoilHelper.kt +++ b/app/src/main/java/org/schabi/newpipe/util/image/CoilHelper.kt @@ -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()