-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Pre-submission checklist
- I am submitting a bug report, not a feature request.
- I have searched for similar issues, but did not find any matches.
Description
I have a habit that is tracked as "once every X day", in my case once every 7 days. I have a duration with 12 days in between, and my streak does not break. It only breaks if I reduce the frequency to "once every 6 days", which ends up being a 1 day gap between the two events.
It looks like the app is calculating the duration on both ends of the days that are checked, instead of X days between the two days that have a check mark.
I.e. if you set a habit as "once every 7 days" and have activities on the 1st and 13th, it will not break the streak. I would expect the streak to break with any duration longer than the 1st and 9th, which is more than 7 days between events.
In the screenshot below, I have check marks on Jan 20th and Feb 1st. I would expect the streak to break since there were 12 days between these two events.
Steps to reproduce
- Go to a habit that is set to "once every X days"
- Check off two days that have any less than X*2 days in between.
- The streak is not broken.
- Check off two days that are X*2+1 days in between.
- The streak is broken.
System information
- Phone: Samsung S24 Ultra
- Phone Operating System: Android Version 16
- App version: 2.3.1
