Fixed - Button color incorrect

This commit is contained in:
Pavol Franek 2020-03-12 18:11:19 +01:00
parent db6c2ee4a4
commit 245f5ac10d

View File

@ -196,7 +196,7 @@ class StopwatchFragment : Fragment() {
private fun updateIcons() {
val drawableId = if (isRunning) R.drawable.ic_pause_vector else R.drawable.ic_play_vector
val iconColor = if (context!!.getAdjustedPrimaryColor() == Color.WHITE) Color.BLACK else context!!.config.textColor
val iconColor = if (context!!.getAdjustedPrimaryColor() == Color.WHITE) Color.BLACK else Color.WHITE
view.stopwatch_play_pause.setImageDrawable(resources.getColoredDrawableWithColor(drawableId, iconColor))
}