From 00994df7253b55cd7dff98c12e0daa7b39307e9f Mon Sep 17 00:00:00 2001 From: Pavol Franek <> Date: Thu, 12 Mar 2020 18:35:38 +0100 Subject: [PATCH] Clock - If a timer is inactive, show the default time at the top, not 00:00 --- .../com/simplemobiletools/clock/fragments/TimerFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 d1919dca..362051de 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt @@ -42,7 +42,7 @@ class TimerFragment : Fragment() { val config = requiredActivity.config val textColor = config.textColor - timer_time.text = 0.getFormattedDuration() + timer_time.text = config.timerSeconds.getFormattedDuration() requiredActivity.updateTextColors(timer_fragment) timer_play_pause.background = resources.getColoredDrawableWithColor(R.drawable.circle_background_filled, context!!.getAdjustedPrimaryColor()) @@ -121,7 +121,7 @@ class TimerFragment : Fragment() { @Subscribe(threadMode = ThreadMode.MAIN) fun onMessageEvent(state: TimerState.Idle) { - view.timer_time.text = 0.getFormattedDuration() + view.timer_time.text = requiredActivity.config.timerSeconds.getFormattedDuration() updateViewStates(state) }