Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Allowed Daily Screen Time" counter not reset when app deactivated (over midnight?) #138

Open
mbroedl opened this issue Sep 11, 2024 · 0 comments

Comments

@mbroedl
Copy link

mbroedl commented Sep 11, 2024

Hello,
I really enjoy DetoxDroid, it has helped me to Detox quite a lot already. Thanks a lot for that!
the "Allowed Daily Screen Time" counter in the Disable Apps option appears to be not reset when the App or certain features are disabled. I have experienced this so far when — I assume at midnight— the

  • phone is in extreme power saving mode so that the app is not running (normal power saving mode seems to be fine on my phone)
  • the Detoxdroid Accessibility Service is disabled in the settings (e.g. because I need to use a banking app)

The easiest patch would be a running counter with the last timestamp when the Screen Time counter was increased. Then, if the previous timestamp turns out to be on a different day from the current timestamp, reset the counter to zero.
Thanks for having a look at this!

@mbroedl mbroedl changed the title "Allowed Daily Screen Time" counter not reset when deactivated or in power saving "Allowed Daily Screen Time" counter not reset when app deactivated (over midnight?) Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant