Add "getActiveIcon" method to the UiUtils

This commit is contained in:
Alex Sytnyk 2018-08-09 21:58:16 +03:00
parent 3bc7fdc8b9
commit ce3afc5a38

View file

@ -95,6 +95,10 @@ class UiUtils(private val app: TelegramApplication) {
return getDrawable(id, if (isLightContent) R.color.icon_light else 0) return getDrawable(id, if (isLightContent) R.color.icon_light else 0)
} }
fun getActiveIcon(@DrawableRes id: Int): Drawable? {
return getDrawable(id, if (isLightContent) R.color.ctrl_active_light else 0)
}
fun getIcon(@DrawableRes id: Int): Drawable? { fun getIcon(@DrawableRes id: Int): Drawable? {
return getDrawable(id, 0) return getDrawable(id, 0)
} }