mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
Countdown is the only focus mode that auto-stops with no follow-up (Pomodoro transitions into a surfaced break; Flowtime only stops on explicit user action), so completion could pass unnoticed: the SessionDone screen wasn't reliably shown and there was no cross-platform notification. On automatic Countdown completion (surfaceSessionDoneOnCompletion$): - If the focus overlay is open, the reducer's SessionDone screen is already visible — nothing forced. - If the overlay is hidden (user working elsewhere), surface a non-modal banner (BannerId.FocusModeSessionDone) with a 'What's next?' action that opens the SessionDone screen and self-dismisses once the overlay opens — instead of seizing the screen. - Raise an OS notification only when the app is unfocused (skipped while focused, since the surfaced UI is alert enough and it would fire on idle-resume) and not on Android, where the native foreground service already posts its own completion notification (documented in FocusModeForegroundService.onTimerComplete to keep the contract visible). Uses the injectable IS_ANDROID_WEB_VIEW_TOKEN (testable). Manual end and Pomodoro/Flowtime are excluded. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| app_config.properties | ||
| build.gradle | ||
| capacitor.build.gradle | ||
| config.gradle | ||
| google.properties | ||
| proguard-rules.pro | ||