休息纯计时解耦滑动;重复任务按周期自动生成;统计数字去空格

This commit is contained in:
XIGE
2026-11-28 13:25:28 +08:00
parent ef2fb3a955
commit c3e0c9d67a
11 changed files with 147 additions and 102 deletions

View File

@@ -75,7 +75,8 @@ class TimerService : Service() {
syncTicker()
}
ACTION_STOP -> {
TimerCore.stopEarly()
// 休息是纯计时:通知上的"结束"也走 endBreak,不产生任何记录
if (TimerCore.mode == TimerCore.MODE_FOCUS) TimerCore.stopEarly() else TimerCore.endBreak()
stopTicker()
stopSelf()
return START_NOT_STICKY