Closed ice-cube-1 closed 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
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
implemented well implemented a variant that works if you open it every week at least but that's good enough IMO
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