mpcjanssen / simpletask-android

GNU General Public License v3.0
546 stars 125 forks source link

Fix bug where notifications can disappear/lose association with task #1188

Open camgraff opened 2 years ago

camgraff commented 2 years ago

Since adding the ability to pin tasks as notifications in #1170 I've found a couple issues with the current implementation. Namely:

Solution: Create the notifications from a Service and call startForeground.

Solution: Make the task IDs persistent by storing them in SharedPreferences.

mpcjanssen commented 2 years ago

@camgraff, thank you for this PR. It does seem to have quite a few moving parts so I would like to review it or at least understand it in a bit more detail. Unfortunately I do not have time for that right now so it's going to take some time for this to be merged.