Merge pull request #180 from SimpleMobileTools/request_1

Clock - If a timer is inactive, show the default time at the top, not…
This commit is contained in:
Tibor Kaputa 2020-03-12 20:30:24 +01:00 committed by GitHub
commit 51860d6b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}