Skip to content

Commit 4f21878

Browse files
authored
Stop pomodoro mode after final cycle completes (#42)
1 parent b895ab5 commit 4f21878

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Reef/src/main/java/dev/pranav/reef/accessibility/FocusModeService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ class FocusModeService: Service() {
295295
val nextPhase = calculateNextPhase(state, config)
296296

297297
if (nextPhase.isComplete) {
298+
prefs.edit {
299+
putBoolean("pomodoro_mode", false)
300+
remove("pomodoro_current_cycle")
301+
}
298302
endSession()
299303
return
300304
}

0 commit comments

Comments
 (0)