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
Add alarm manager #1
Add alarm manager #1
Conversation
=> rrousselGit/provider#679 shows how to do if you still want listeners
0508543
to
f641ff2
Compare
e88c964
to
e8ad86d
Compare
e8ad86d
to
dddd9b1
Compare
dddd9b1
to
448bdef
Compare
5e05e85
to
629b954
Compare
This keeps the timers in sync and gets rid of the backtracking seen on flutter UI Cleaned up notification permission check Cleaned up android method Switched to periodic timers
Switched back to TimerHandler from kotlin.concurrent.fixedRateTimer Reduced number of broadcasts Updated refresh rate to 20ms for both UI and Notification
Fixed TimerHandler Delay getDelay() Fixed vibrate not stopping sometimes Revert back to ~1000ms on notification when app not visible
629b954
to
7ea4ec1
Compare
Seems to have an error when attempting to run:
|
It was a local environment error. I needed to change: Great work as per usual King. Thanks a lot. |
@josephnglynn any idea what I should do about this? |
Scratch that I figured it out here: |
8ca80ce Fixes gradle wanting signing certificates when building debug builds.
0dd37c1 Fixes
Looking up a deactivated widget's ancestor is unsafe.
. This can only be caught in debug builds as the check is removed for release builds. See here and here for more information. This commit also removes listeners and some state variables in exchange forcontext.watch<T>()
as recommanded inProvider
docs for reading values.cf35307 Adds changes from
https://gitea.presley.nz/brandon.presley/Massive/pulls/236
and adapts them to work with here.ad72876 Makes
TimerService
send a timeStamp with any command to the App UI, to keep them in sync.731ff63 Makes App UI send a timeStamp with any command to
TimerService
, to keep them in sync + cleans up permission checks and methods.b294b55 Fixes a UI bug causing discrepancies in the notification and UI timer + stops
TimerService
sending timer information to App UI if the App UI triggered the timer.7ea4ec1 Fixes if the previous commands in
Runnable
took long enough that(timeTaken + timer.getRemainingMillis() % 1000) > 1000
then we could miss a second where we should've updated the timer. Also fixes the vibrate timer not turning off sometimes.I have left the
getProgress
method in MainActivity, andStopAlarm.kt
which can both be safely removed if there are no future plans for them.If you want me to squash these some commits together let me know.