ice-cube-1 / bag-packer-gcse

CS group project - app that helps people remember what to bring with them every day
0 stars 0 forks source link

Daily refresh #6

Closed ice-cube-1 closed 12 months ago

ice-cube-1 commented 12 months ago

Added toggle for whether tasks are recurring Added reference to system calendar so it knows the current date Reformatted to go Mon-Sun rather than Sun-Sat, and 0 rather than 1 based Found previous day and deletes all non-recurring tasks for the previous day and unchecks the rest every time the user visits the app home screen

ice-cube-1 commented 12 months ago

However doing this may be confusing for the user if they start trying to add non-recurring tasks for the previous day, so need it to only do this the first time the app is opened Added another sharedpreferences with the current day: If the calendar date != currentday then do the previous refresh and make current day the actual day Implemented this, it works

ice-cube-1 commented 12 months ago

This only works if the app is opened every day Fix that would work is storing the date rather than day, and refreshing the ones from day-(actual date - stored date) to day-1 (inclusive) Need to implement this

ice-cube-1 commented 12 months ago

implemented well implemented a variant that works if you open it every week at least but that's good enough IMO