mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-02-08 07:58:38 +01:00
Merge pull request #179 from SimpleMobileTools/fix_#171
Fixed - Button color incorrect
This commit is contained in:
commit
29f43596e7
@ -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…
x
Reference in New Issue
Block a user