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

Don't count past zero when counting down #18

Conversation

NicksPatties
Copy link
Owner

Changes

  • Set currCountDownSeconds to 0 when I count, and I'm currently past the event's scheduled end time
  • Add a unit test to verify functionality

This fixes part of the bug with the related issue. Since the complete fix requires a new feature to guide the user to change their app's battery settings, the rest of the fix will occur when that feature is fleshed out and completed. For now, this removes the UI jank caused by currCountDownSeconds being a negative number.

Related issue

#12

Testing

  • Unit testing

@NicksPatties NicksPatties linked an issue Jul 30, 2022 that may be closed by this pull request
@NicksPatties NicksPatties merged commit 6fe1316 into master Jul 30, 2022
@NicksPatties NicksPatties deleted the 12-bug-alarm-doesnt-fire-when-counting-down-for-a-long-time branch August 29, 2022 19:49
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

Successfully merging this pull request may close these issues.

[BUG] Alarm doesn't fire when counting down for a long time
1 participant