mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-12 09:31:08 +02:00
Fixed - Button color incorrect
This commit is contained in:
parent
db6c2ee4a4
commit
245f5ac10d
@ -196,7 +196,7 @@ class StopwatchFragment : Fragment() {
|
|||||||
|
|
||||||
private fun updateIcons() {
|
private fun updateIcons() {
|
||||||
val drawableId = if (isRunning) R.drawable.ic_pause_vector else R.drawable.ic_play_vector
|
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))
|
view.stopwatch_play_pause.setImageDrawable(resources.getColoredDrawableWithColor(drawableId, iconColor))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user