feat: Show exact time remaining in Live Update/Now Bar

This commit is contained in:
Nishant Mishra
2025-09-14 15:36:18 +05:30
parent 781c103f59
commit f28fc8a2c1

View File

@@ -139,7 +139,7 @@ class TimerService : Service() {
else -> timerRepository.longBreakTime - (SystemClock.elapsedRealtime() - startTime - pauseDuration).toInt()
}
iterations = (iterations + 1) % 50
iterations = (iterations + 1) % 10
if (iterations == 0) showTimerNotification(time.toInt())
@@ -224,6 +224,7 @@ class TimerService : Service() {
)
)
.setWhen(System.currentTimeMillis() + remainingTime) // Sets the Live Activity/Now Bar chip time
.setShortCriticalText(millisecondsToStr(time))
.build()
)