shortening a too long line
This commit is contained in:
parent
af402d85e1
commit
2562eca6ba
1 changed files with 2 additions and 1 deletions
|
|
@ -163,7 +163,8 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val dialpadIcon = resources.getColoredDrawableWithColor(R.drawable.ic_dialpad_vector, if (isBlackAndWhiteTheme()) Color.BLACK else config.primaryColor.getContrastColor())
|
val iconColor = if (isBlackAndWhiteTheme()) Color.BLACK else config.primaryColor.getContrastColor()
|
||||||
|
val dialpadIcon = resources.getColoredDrawableWithColor(R.drawable.ic_dialpad_vector, iconColor)
|
||||||
main_dialpad_button.apply {
|
main_dialpad_button.apply {
|
||||||
setImageDrawable(dialpadIcon)
|
setImageDrawable(dialpadIcon)
|
||||||
background.applyColorFilter(getAdjustedPrimaryColor())
|
background.applyColorFilter(getAdjustedPrimaryColor())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue