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

Stopwatch resets when leaving the app. #303

Open
PizzaLovingNerd opened this issue Apr 20, 2021 · 5 comments · May be fixed by #1410
Open

Stopwatch resets when leaving the app. #303

PizzaLovingNerd opened this issue Apr 20, 2021 · 5 comments · May be fixed by #1410
Labels
enhancement Enhancement to an existing app/feature

Comments

@PizzaLovingNerd
Copy link

Hello, I was using the stopwatch, and I noticed that whenever I closed the app, the stop watch would reset back to 0. Here is a video demonstrating the issue: https://www.youtube.com/watch?v=AcRQ5m9-PVQ

The expected behavior is having the stop watch still be running or atleast paused when the app is relaunched.

@qbinary
Copy link

qbinary commented Apr 21, 2021

I think the problem is that the event which initializes the app is also called to reset the clock application after pressing the stop button. So that could be fixed by adding an additional method which gets invoked by the initialize event only if the state of the stopwatch is not set or if the stop button is pressed. Otherwise the old state is kept and the app just continues running with the last state.

@JF002 JF002 added the enhancement Enhancement to an existing app/feature label Apr 23, 2021
@Soundtoxin
Copy link

I got hit by this badly earlier. I started downloading the new LineageOS Nightly OTA to flash and then started a stopwatch. It notified me about the download being done a few seconds after the stopwatch had started which just cleared it.

@Itai-Nelken
Copy link
Contributor

#783 implements persistence.

@pptime02 pptime02 linked a pull request Nov 1, 2022 that will close this issue
@Eve1374
Copy link

Eve1374 commented Oct 30, 2024

Hello,
I noticed that when receiving a notification while stopwatch is running, it also resets the stopwatch. I think issues are related and so I post it there instead of making a new issue. Tested on commit 0076962

@mark9064
Copy link
Member

You're right about it being related, #2141 should resolve this and is looking to be in really good shape to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing app/feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants