You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: prepare BootService for review reminders
GSoC 2025: Review Reminders
This is the class that runs when the phone initially starts up. It listens to the system boot-completed intent and was previously used for the old studying notification system. However, it is messy and needs to be refactored. Most of its functionality will be replaced by my code. Here, I'm cleaning up the code I plan to keep and marking the code I plan to eventually delete.
- Add missing docstring and proper attribution for file creation to BootService -- I checked who created the file using `git blame`
- Use conditionals to gate where new review reminder code will be run
- Made it so that old notification code will only run if review reminders are disabled
- Renamed `sWasRun` Hungarian notation variable to be `wasRun`
- Used Intent constant instead of hard-coding `BOOT_COMPLETED_INTENT`
- Annotated methods that will not be used for the review reminders system (i.e., they can be deleted after August) with `@LegacyNotifications`, a new annotation
0 commit comments