NotePad
NotePad copied to clipboard
More repeating options for reminders
Current:
- Weekly
Possible:
- Every 3 (or n) days
- Monthly (the 3rd, each month, careful with february)
- Every 3 (or n) months
Personal thoughts on this:
-
repeats
inNotification.java
is thelong
value that stores the plan for repeating reminders - as of now we use 7 values, from
0x1
to0x1000000
for the week days - we can go as high as
0x1000000000000000L
without touching the database structure - this imples that we can easily have 8 other configurations, as far as I understand
- these could be "every 2 days", "every month", ... just the 8 most popular ones, as requested by the users
I think instead we should move to a different logic. Remove the column "repeats" and add these columns to the table "notification":
_id | (...) | repeats_on_monday | tue | wed | thu | fri | sat | sun | repeats_every_x | unit |
---|---|---|---|---|---|---|---|---|---|---|
123 | (...) | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 8 | days |
so what the end user sees is a new row below the WeekDayView where you can choose a number and one of ("hours","days","weeks","months","years").
or we can simply:
- add 2 columns to
notification
:repeats_every_x_days
andrepeats_every_x_months
- keep
repeats
but only for the week days, so don't touch the current logic - then in the reminder view the user will express 1 week as 7 days and 1 year as 12 months
-
repeats_every_x_months
will be aware of february being shorter than december, so it's smarter than just saving it as 30 inrepeats_every_x_days