Merge pull request #179 from SimpleMobileTools/fix_#171
Fixed - Button color incorrect
This commit is contained in:
commit
29f43596e7
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue