Auto commit Sat Apr 4 08:01:01 AM CDT 2026
This commit is contained in:
@@ -11,3 +11,10 @@ fun sessionProgressFraction(durationSec: Int, remainingSec: Int): Float {
|
||||
val elapsed = (total - remainingSec).coerceIn(0, total)
|
||||
return elapsed.toFloat() / total.toFloat()
|
||||
}
|
||||
|
||||
fun shouldRequireStopConfirmation(runtimeState: RuntimeState): Boolean {
|
||||
return runtimeState == RuntimeState.COUNTDOWN ||
|
||||
runtimeState == RuntimeState.RUNNING ||
|
||||
runtimeState == RuntimeState.PAUSED ||
|
||||
runtimeState == RuntimeState.INTERRUPTED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user