Add annotation

This commit is contained in:
Isira Seneviratne 2024-06-26 09:45:56 +05:30
parent f74402bc94
commit e3b7bf467e
1 changed files with 1 additions and 1 deletions

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