Skip to content

Commit

Permalink
fixing line length
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Jan 25, 2022
1 parent 203c7e0 commit 0713877
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ fun Context.getResTintedDrawable(@DrawableRes drawableRes: Int, @ColorRes tint:
return getTintedDrawable(drawableRes, ContextCompat.getColor(this, tint), alpha)
}

fun Context.getTintedDrawable(@DrawableRes drawableRes: Int, @ColorInt tint: Int, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1f) = ContextCompat.getDrawable(this, drawableRes)
fun Context.getTintedDrawable(@DrawableRes drawableRes: Int,
@ColorInt tint: Int,
@FloatRange(from = 0.0, to = 1.0) alpha: Float = 1f
) = ContextCompat.getDrawable(this, drawableRes)
?.mutate()
?.also { drawable ->
drawable.setTint(tint)
Expand Down

0 comments on commit 0713877

Please sign in to comment.