休息纯计时解耦滑动;重复任务按周期自动生成;统计数字去空格
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user