use a helper function for fetching the FAB icon color

This commit is contained in:
tibbi
2020-03-28 19:25:21 +01:00
parent 2562eca6ba
commit 11e7d051d4
3 changed files with 3 additions and 4 deletions

View File

@ -163,8 +163,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
}
}
val iconColor = if (isBlackAndWhiteTheme()) Color.BLACK else config.primaryColor.getContrastColor()
val dialpadIcon = resources.getColoredDrawableWithColor(R.drawable.ic_dialpad_vector, iconColor)
val dialpadIcon = resources.getColoredDrawableWithColor(R.drawable.ic_dialpad_vector, getFABIconColor())
main_dialpad_button.apply {
setImageDrawable(dialpadIcon)
background.applyColorFilter(getAdjustedPrimaryColor())