Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Add 'Habit Mode' feature to optionally show app after screen unlock #1222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcrutland
Copy link

Adds 'habit mode' which is intended to optionally remind users to attend to their todo list regularly.

Added foreground service to reliably receive USER_PRESENT. Added enable checkbox to Settings/Features.
Added permission check/get/test on change of setting.

Could be extended to choose filter etc in settings.

Tested in emulator (API 30) and on my Samsung S22 (Android 13) for a few days.

Added foreground service to reliably receive USER_PRESENT.
Added enable checkbox to Settings/Features.
Added permission check/get/test on change of setting.

Could be extended to choose filter etc in settings.
@smichel17
Copy link
Collaborator

smichel17 commented May 5, 2023

Thanks for being interested in contributing! However, I wonder if this needs to be a part of Simpletask. Seems like it could be a separate 'Habit Creation' app and function just as well (and could be easily extended to work with other apps!)

@jcrutland
Copy link
Author

Thanks for looking at my PR. I agree it might be neat to have this sort of capability as a general app - I did a brief search to see if there is something in fdroid that does this already and I didn't find anything that matches exactly so maybe there is a gap for something new.

I personally have found this feature useful in Simpletask and I'll keep using it; I think it has helped me make better use of my screen time by interrupting the reflex to scroll the news or whatever. If you think it might in its present form be a bit of a blunt instrument, maybe a slightly different presentation would be more suitable? Instead of showing Simpletask on screen unlock, it instead (when enabled) shows a brief reminder notification prompt to open Simpletask?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants