Skip to content

Commit

Permalink
Add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Jun 26, 2024
1 parent 996c2d7 commit 9c33445
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9c33445

Please sign in to comment.