avoid setting 0 seconds at the timer, set to 10 by default
This commit is contained in:
parent
247009602e
commit
290267594e
|
@ -50,8 +50,9 @@ class TimerFragment : Fragment() {
|
|||
|
||||
timer_initial_time.setOnClickListener {
|
||||
MyTimePickerDialogDialog(activity as SimpleActivity, config.timerSeconds) {
|
||||
config.timerSeconds = it
|
||||
timer_initial_time.text = it.getFormattedDuration()
|
||||
val seconds = if (it <= 0) 10 else it
|
||||
config.timerSeconds = seconds
|
||||
timer_initial_time.text = seconds.getFormattedDuration()
|
||||
if (!isRunning) {
|
||||
resetTimer()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue