8000 "Allowed Daily Screen Time" counter not reset when app deactivated (over midnight?) · Issue #138 · flxapps/DetoxDroid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
"Allowed Daily Screen Time" counter not reset when app deactivated (over midnight?) #138
Open
@mbroedl

Description

@mbroedl

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0