DroidWorksStudio / mLauncher

Minimal Launcher app for Android. Customized olauncher as I just started learning kotlin .
GNU General Public License v3.0
326 stars 29 forks source link

[Bug Report] Total Screen Time shows one hour more than real screen time #571

Closed estamine closed 1 week ago

estamine commented 2 months ago

Checklist

App version

1.6.7

Android version

Android 13

How did you download the software?

F-Droid

Bug description

The Total Screen Time shown on the bottom of the home screen always shows 1 hour more than the real screen time. At midnight it resets to 1 hour instead of 0 hours. I controlled the screen time using two other apps also available on F-Droid. Screen Time and usageDirect.

Steps to reproduce the bug

Activate Total Screen Time The Screen Time is 1 hour more than it should.

Expected behavior

The Total Screen Time should show 1 hour less time, which is the real screen time.

Screenshots/Screen recordings

No response

Logs

No response

Additional information

No response

Terms and Conditions

github-actions[bot] commented 2 months ago

👋 Thanks for reporting!

We will get back to you soon about this issue.

HeCodes2Much commented 2 months ago

ill have a look into this for you and see why this is happening.

estamine commented 2 months ago

Tonight at midnight it showed around 30 minites more. I checked and it is not exactly 1 hour or 30 minutes, which in my experience is normal. Every screen time program has some minutes difference between them.

I attached two screenshots.

Screenshot_20240908-111516_mLauncher Screenshot_20240908-111536_usageDirect

estamine commented 2 months ago

Also, my Android is a LineageOS 20 based on 13 and it doen"t have the Digital Wellbeing app.

HeCodes2Much commented 2 months ago

That app you use to check times does it disregard any app at all if it does then that could also be a reason why. I myself don't track these it's built into android itself and I don't disregard any apps in the time displayed. Even being on the home screen still displays time.

estamine commented 2 months ago

Hey, I don't believe it disregards any apps. When I look at the list of apps it measures the screen time of it seems to include all, even the home apps I don't use (with 0 seconds).

I'll test it a bit more and get back to you.

A question: Does it reset at 00h phone time? Because I think that at 00h phone time it already has 30-60 minutes on it.

But I'll test it more and write here.

Thanks!

estamine commented 2 months ago

So I waited for the clock to reset at midnight and used it very little. It not only shows more scrren time than the other app, the screen time shown is higher than the time passed after midnight, see clock.

Screenshot_20240911-010933_usageDirect Screenshot_20240911-010940_mLauncher

ArnavK-09 commented 2 months ago

When it would be fixed? Confusing so much

Screenshot_2024-10-02-00-01-02-52_bdebae1434f6f56f892a354b1828f4e8.jpg

HeCodes2Much commented 1 week ago

just working on a fix for this soon

HeCodes2Much commented 1 week ago

hello so i have been playing about and i have gotten it as close as i can but do keep in mine If you're still not seeing the same numbers as in Digital Wellbeing, there may be additional internal logic used by Digital Wellbeing that isn't exposed via public APIs.