mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
fix #26, show Hours field at duration if it is exactly 3600 seconds
This commit is contained in:
@ -159,6 +159,7 @@ class TimerFragment : Fragment() {
|
||||
private fun updateDisplayedText(): Boolean {
|
||||
val diff = initialSecs - totalTicks
|
||||
var formattedDuration = Math.abs(diff).getFormattedDuration()
|
||||
|
||||
if (diff < 0) {
|
||||
formattedDuration = "-$formattedDuration"
|
||||
if (!isForegrounded) {
|
||||
|
Reference in New Issue
Block a user