Commit 4a98bbb
committed
feat: Enhance Pomodoro mode with auto-start phases and improved notifications
This commit introduces significant improvements to the Pomodoro timer logic, specifically handling phase transitions more robustly and adding user-requested settings for automation and feedback.
Key changes include:
* **Pomodoro Automation**: Added support for "Auto-start Pomodoros" and "Auto-start Breaks" settings. The `FocusModeService` now automatically transitions between phases and starts the countdown based on user preferences.
* **Focus Completion Notifications**: Introduced a new high-priority notification channel for session completion, including support for custom sounds and a dedicated "complete" message.
* **Vibration Controls**: Added a toggle for "Transition Vibration" in Pomodoro settings, allowing users to enable or disable haptic feedback on phase changes.
* **UI Refinement**:
* Updated `TimerScreen` to use `DMSerif` typography for the timer display and replaced the text-based reset button with a standard `Replay` icon.
* Deleted `TimerControls.kt` as part of the timer UI consolidation.
* Simplified navigation transitions in `MainActivity` with a unified fade and slide animation.
* Removed `UnifiedTopBar` from `MainActivity` to streamline the interface.
* **Permission Handling**: `PermissionsCheckActivity` now automatically returns to the previous screen once all required permissions are granted.
* **Accessibility & Strict Mode**:
* Modified the persistent notification to hide the "Pause" button when Strict Mode is enabled.
* DND (Do Not Disturb) is now dynamically enabled/disabled based on whether the current active phase is a focus phase.
* **Internationalization**: Updated French translations and added new string resources for Pomodoro completion and reset actions.
Signed-off-by: invokevirtual <purwarpranav80@gmail.com>1 parent a11b719 commit 4a98bbb
9 files changed
+185
-243
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
304 | 289 | | |
305 | 290 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
326 | 296 | | |
327 | 297 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
332 | 303 | | |
333 | 304 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
338 | 310 | | |
339 | 311 | | |
340 | 312 | | |
| |||
769 | 741 | | |
770 | 742 | | |
771 | 743 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | 744 | | |
837 | 745 | | |
838 | 746 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
Lines changed: 76 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
189 | | - | |
| 195 | + | |
190 | 196 | | |
191 | 197 | | |
192 | 198 | | |
| |||
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
| 258 | + | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| |||
263 | 270 | | |
264 | 271 | | |
265 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
266 | 283 | | |
267 | 284 | | |
268 | 285 | | |
269 | 286 | | |
270 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
271 | 290 | | |
272 | 291 | | |
273 | 292 | | |
274 | 293 | | |
275 | 294 | | |
276 | 295 | | |
277 | | - | |
| 296 | + | |
278 | 297 | | |
279 | 298 | | |
280 | 299 | | |
281 | 300 | | |
282 | 301 | | |
283 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
284 | 305 | | |
285 | 306 | | |
286 | 307 | | |
287 | 308 | | |
288 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
289 | 312 | | |
290 | 313 | | |
291 | | - | |
292 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
293 | 319 | | |
294 | 320 | | |
295 | | - | |
296 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
297 | 325 | | |
298 | 326 | | |
299 | 327 | | |
300 | 328 | | |
301 | | - | |
302 | | - | |
| 329 | + | |
| 330 | + | |
303 | 331 | | |
304 | 332 | | |
305 | 333 | | |
306 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
307 | 338 | | |
308 | 339 | | |
309 | 340 | | |
| |||
500 | 531 | | |
501 | 532 | | |
502 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
503 | 566 | | |
504 | 567 | | |
505 | 568 | | |
| |||
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
323 | 331 | | |
324 | 332 | | |
325 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
326 | 388 | | |
327 | 389 | | |
328 | 390 | | |
0 commit comments