Add "getActiveIcon" method to the UiUtils
This commit is contained in:
parent
3bc7fdc8b9
commit
ce3afc5a38
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue