Created
November 16, 2020 09:40
-
-
Save AshuTyagi16/f6bdafbb95421499684022d66704751c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun Drawable.updateTint(color: Int) { | |
DrawableCompat.wrap(this)?.let { | |
DrawableCompat.setTint(it, color) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment