From 1ea4c030ee9a731ef3c7e801688f3792c16a0d54 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 12 Mar 2020 20:22:22 +0100 Subject: [PATCH] properly color the initial Timer button icon --- .../com/simplemobiletools/clock/fragments/TimerFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt index 5674ecc..5aabf26 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt @@ -46,6 +46,7 @@ class TimerFragment : Fragment() { requiredActivity.updateTextColors(timer_fragment) timer_play_pause.background = resources.getColoredDrawableWithColor(R.drawable.circle_background_filled, context!!.getAdjustedPrimaryColor()) + timer_play_pause.applyColorFilter(if (context!!.getAdjustedPrimaryColor() == Color.WHITE) Color.BLACK else Color.WHITE) timer_reset.applyColorFilter(textColor) timer_initial_time.text = config.timerSeconds.getFormattedDuration()