mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
fixing line length
This commit is contained in:
parent
203c7e0cd7
commit
0713877baf
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue