Commit Graph

29 Commits

Author SHA1 Message Date
Brandon Presley cc6b37e16a Fix timer not always ending - 2.3 🚀
This bug is because I mis-named the event for the alarm finishing.
It would only be possible to create this bug if you do the following:
1. Create a timer
2. Swap to another app for it's duration and keep your phone screen
   active
3. On timer completion, without tapping the notification, focus the app
4. See the timer has not been set to zero
2023-11-15 22:44:02 +13:00
Brandon Presley 744ed928f0 Fix timer page flashing 00:00 on first navigate 2023-11-04 13:53:19 +13:00
Brandon Presley cffc458338 Start alarms as a foreground service
Related to #142.
Can't be sure this fixed anything because I can't replicate the error
on my emulators running android 13. I need to install android 13
on a real device and try replicate + see if this fixes it.
2023-01-03 17:04:51 +13:00
Brandon Presley a2721e9f12 Use sqlite in Android code for alarm settings
Closes #129
2023-01-02 18:54:35 +13:00
Brandon Presley 9c184c5924 Add log when alarm finishes 2022-12-08 15:56:09 +13:00
Brandon Presley c2994da041 Make getManager private on AlarmModule
It was never used publicly.
2022-12-02 14:47:54 +13:00
Brandon Presley 6676efe69f Simplify AlarmModule 2022-11-30 14:23:24 +13:00
Brandon Presley be4098962e Add settings module for android 2022-11-21 18:15:43 +13:00
Brandon Presley 60fe324e06 Send 00:00 at end of alarm event 2022-11-10 15:15:14 +13:00
Brandon Presley 3c17a12f6e Fix settings for adding 1 min to rest timer
Previously when adding one minute to the rest timer from
the notification, settings weren't being used (sound,
vibration).

Closes #113
2022-11-07 15:56:07 +13:00
Brandon Presley 97442bc292 Fix adding one minute to a complete alarm 2022-11-05 17:22:51 +13:00
Brandon Presley 806480532f Add 1 minute to timer from notification 2022-11-05 14:46:42 +13:00
Brandon Presley 0e5de0e519 Add noSound to AlarmModule 2022-11-03 21:59:12 +13:00
Brandon Presley fcce1ad9ef Add native events to communicate the running timer
Closes #99
2022-11-03 20:04:15 +13:00
Brandon Presley 5441aa164b Move registerReceiver to no avail 2022-10-28 17:31:10 +13:00
Brandon Presley 1c58dc2db1 Local broadcast receiver is not running on stop intent 2022-10-28 17:22:26 +13:00
Brandon Presley 8504f8b811 Merge branch 'master' into alarm-module 2022-10-28 16:49:39 +13:00
Brandon Presley 46dcfb96bf Add broadcast receiver to AlarmModule 2022-10-28 16:48:29 +13:00
Brandon Presley 859fa2a89f Add setting to disable sound on rest timers
Closes #50
2022-10-27 17:28:27 +13:00
Brandon Presley 21d9149498 Quit trying to move timer logic into AlarmModule
I just can't figure out how to make the stop button
and delete intents work.
2022-10-24 14:45:21 +13:00
Brandon Presley 19fa8aa13a Stop alarm when calling stop native module 2022-09-26 16:10:26 +13:00
Brandon Presley a20a0a1832 Add timer page
Closes #54
2022-09-26 14:38:25 +13:00
Brandon Presley a1cd4e8080 Improve requesting app runs in background 2022-08-30 23:06:39 +12:00
Brandon Presley 48d4d59ac8 Add ability to choose alarm sound
Closes #5
2022-08-25 20:41:15 +12:00
Brandon Presley 4c185f0346 Add vibration setting for timers 2022-08-20 16:37:59 +12:00
Brandon Presley 839d872c1c Shorten method names in AlarmModule 2022-07-19 16:38:58 +12:00
Brandon Presley 07fa6f7ab2 Switch some modals to dialogs and fix light mode 2022-07-06 21:03:56 +12:00
Brandon Presley 6581b32afe Move timer into notifications bar 2022-07-05 15:33:42 +12:00
Brandon Presley 3d32f391e6 Convert java to kotlin 2022-07-05 12:43:04 +12:00