Commit Graph

272 Commits

Author SHA1 Message Date
Phillip Hsu
d19d32fa86 Reschedule alarms after booting up 2016-06-14 21:41:14 -07:00
Phillip Hsu
1edd0ce026 Use LocalBroadcast to finish RingtoneActivity from other components 2016-06-14 19:36:14 -07:00
Phillip Hsu
548ca6197e Implemented vibration for alarms 2016-06-14 01:29:12 -07:00
Phillip Hsu
22973eb262 Fixed bug where a recurring alarm dismissed in its upcoming state is rescheduled immediately for its normal ring time 2016-06-13 18:50:43 -07:00
Phillip Hsu
c37e9438cf Recurring alarms working 2016-06-13 03:11:06 -07:00
Phillip Hsu
d67bf4e63d More alarm ringsAt() recurrence test situations 2016-06-13 02:15:13 -07:00
Phillip Hsu
d0207ed7b9 Added ringsAt test that queues recurring days 2016-06-12 03:36:55 -07:00
Phillip Hsu
b6260c3fb7 Before trying new id related stuff 2016-06-11 13:33:30 -07:00
Phillip Hsu
0bcbd6b421 Refactored DurationUtils to include DAYS field, and created string resources with days 2016-06-10 20:37:45 -07:00
Phillip Hsu
8d23d8f0b2 Made combined recurrence ringsAt tests cleaner 2016-06-10 15:46:17 -07:00
Phillip Hsu
468641a49b Done combining individual recurrence ringsAt tests 2016-06-10 15:11:26 -07:00
Phillip Hsu
e3c7e8ffce Split recurring alarm rings at test into three stable tests 2016-06-10 14:09:04 -07:00
Phillip Hsu
d9e7d617e1 stable test for recurring days 2016-06-10 00:08:47 -07:00
Phillip Hsu
55836799da Changed where and when we save alarms 2016-06-09 12:36:06 -07:00
Phillip Hsu
b0cc8e3557 Current alarm cancelled and service unbinds when deleting it or saving changes to it 2016-06-08 15:02:40 -07:00
Phillip Hsu
514bf41475 Calling AlarmUtils.cancelAlarm() in RingtoneActivity and RingtoneService was actually necessary 2016-06-08 14:01:54 -07:00
Phillip Hsu
8dc71ae34b Lots of changes 2016-06-08 12:44:12 -07:00
Phillip Hsu
938f1a62a7 Dismissing snoozed alarm now shows Toast confirmation 2016-06-08 11:42:00 -07:00
Phillip Hsu
e2449bb11e More callback events added to AlarmVH. Toast message confirmation when upcoming alarm is dismissed. 2016-06-08 01:54:06 -07:00
Phillip Hsu
ffb6f40fd0 Fixed active alarm notification dismiss bug found in RingtoneService 2016-06-07 19:58:41 -07:00
Phillip Hsu
abdb939ada More Alarm utility methods for cancelling and scheduling 2016-06-07 17:35:50 -07:00
Phillip Hsu
5eb52ee510 Fixed binding of dismiss button in AlarmVH when cancelling snoozed alarm 2016-06-07 13:43:00 -07:00
Phillip Hsu
9f151fa9cc Imported Alarm countdown text 2016-06-07 13:16:53 -07:00
Phillip Hsu
dca0a258f8 Alarm Ppreferences applied to code 2016-06-07 02:03:05 -07:00
Phillip Hsu
4b8bbcf5f2 Moved preference strings from strings.xml to their own category file 2016-06-06 21:24:44 -07:00
Phillip Hsu
a4bfce7874 Imported SettingsActivity and related classes 2016-06-06 19:49:39 -07:00
Phillip Hsu
c4cd333cf7 Split onBind() of AlarmViewHolder into multiple discrete method calls 2016-06-06 19:19:06 -07:00
Phillip Hsu
dab8e1f4a5 Notification actions created for active alarm in RingtoneService 2016-06-06 16:52:51 -07:00
Phillip Hsu
9441b5da10 Added dismiss now action to upcoming alarm notification 2016-06-06 14:04:06 -07:00
Phillip Hsu
24a9d5e2d6 Created DurationUtils and toast message shows after scheduling alarm 2016-06-06 02:19:20 -07:00
Phillip Hsu
3c3b9bf129 Changed interaction dynamics in EditAlarmActivity 2016-06-05 23:24:22 -07:00
Phillip Hsu
7432a057b3 Ringtone stops immediately after dismissive action 2016-06-05 21:43:35 -07:00
Phillip Hsu
edacd53ac2 Bug fixed 2016-06-05 21:21:03 -07:00
Phillip Hsu
8617137b73 dlafkj 2016-06-05 20:24:35 -07:00
Phillip Hsu
b5f2b3cac8 fuck 2016-06-05 20:06:19 -07:00
Phillip Hsu
f67c5e5bb5 Before trying bug fix 2016-06-05 19:58:27 -07:00
Phillip Hsu
53d5eed670 Fixed alarm not ringing because of RingtoneActivity being resumed on next launch and not created 2016-06-05 00:08:54 -07:00
Phillip Hsu
1ea774f21b Added snoozing field to JSON, changed RingtoneActivity launch mode in manifest 2016-06-04 02:45:24 -07:00
Phillip Hsu
6064f4975a Fixed NPE when sending broadcast to UpcomingAlarmReceiver to cancel the notification 2016-06-03 20:59:01 -07:00
Phillip Hsu
a4b54bd935 Created AlarmUtilsHelper interface passed into EditAlarmPresenter 2016-06-03 19:14:23 -07:00
Phillip Hsu
5fb8448ce3 Alarms now scheduled after saving in edit screen 2016-06-03 14:58:57 -07:00
Phillip Hsu
49b7d80185 Refactored alarm management classes 2016-06-03 14:40:27 -07:00
Phillip Hsu
b798a8e2b0 Fixed NPE due to Presenter constructor trying to load the alarm before it returns 2016-06-03 02:43:07 -07:00
Phillip Hsu
ef22355ddf More pointless rerouting 2016-06-03 02:30:35 -07:00
Phillip Hsu
122d42d531 Pointless rerouting of method calls to MVP 2016-06-03 02:23:20 -07:00
Phillip Hsu
ef3e029f29 MVP for EditAlarmActivity established 2016-06-03 01:56:36 -07:00
Phillip Hsu
70992a7cbd Defined Alarm contracts for MVP 2016-06-03 00:05:53 -07:00
Phillip Hsu
19856e1981 Alarm switch when editing now has restrictions 2016-06-02 22:43:29 -07:00
Phillip Hsu
83bd5780c0 Changed alarm day toggles appearance 2016-06-02 22:23:29 -07:00
Phillip Hsu
87cae57514 Applied size span to am/pm in time text 2016-06-02 20:56:07 -07:00
Phillip Hsu
c2707b12b2 Fixes to numpad interactions 2016-06-02 20:48:38 -07:00
Phillip Hsu
68fb80b42b Numpad key listener set 2016-06-02 20:35:41 -07:00
Phillip Hsu
881b4dcf83 Ported numpad 2016-06-02 20:16:37 -07:00
Phillip Hsu
680fd28782 Selecting ringtone works 2016-06-02 14:09:09 -07:00
Phillip Hsu
2f5eff6842 Deleting alarm works 2016-06-02 00:12:59 -07:00
Phillip Hsu
aba3b534a1 DaysOfWeek finished 2016-06-01 21:03:07 -07:00
Phillip Hsu
9aa47ccfbe Added positionOf() method to DaysOfWeek 2016-06-01 20:32:08 -07:00
Phillip Hsu
4de02ed353 Fixed recurrence mapping bug 2016-06-01 17:23:35 -07:00
Phillip Hsu
affab12f75 Commit before bug fixing of alarm recurrence and DaysOfWeek 2016-06-01 15:29:09 -07:00
Phillip Hsu
e80596060b Repository created 2016-05-31 19:39:00 -07:00
Phillip Hsu
15b850d9bd EditAlarmActivity created 2016-05-31 17:36:41 -07:00
Phillip Hsu
454a84ca72 BaseVH and BaseAdapter finished 2016-05-31 15:33:33 -07:00
Phillip Hsu
402255b4a0 Starting to write BaseVH and BaseAdapter 2016-05-31 02:01:01 -07:00
Phillip Hsu
2ad3cca872 Changed recurring days array in Alarm to have no actual concept of which week days are recurring or not, just that a position in the week recurs or not. 2016-05-31 01:12:46 -07:00
Phillip Hsu
ba41c1311e Created DaysOfWeek class 2016-05-31 00:29:15 -07:00
Phillip Hsu
a8e2a88140 Testing multiple alarms 2016-05-29 13:56:05 -07:00
Phillip Hsu
666b3a2a6e Snooze and dismiss buttons added to RingtoneActivity 2016-05-29 02:55:37 -07:00
Phillip Hsu
f7c788cf46 Created UpcomingAlarmReceiver to handle upcoming alarm notifications 2016-05-29 00:50:27 -07:00
Phillip Hsu
37e7d3dd3b Setup RingtoneService 2016-05-28 18:44:51 -07:00
Phillip Hsu
7d4b0c0dff Modified unit test code for Alarm 2016-05-28 02:50:38 -07:00
Phillip Hsu
2a5b6db25c Wrote unit tests for Alarm 2016-05-28 02:14:13 -07:00
Phillip Hsu
e9b99880d7 Initial commit 2016-05-27 02:23:44 -07:00