Commit Graph

456 Commits

Author SHA1 Message Date
Phillip Hsu
0f16cebd7c Send intent with start/pause action from StopwatchFragment to StopwatchNotificationService 2016-09-12 20:17:24 -07:00
Phillip Hsu
9d0b00d5e7 Send intent with stop action from StopwatchFragment to StopwatchNotificationService to remove notification when stopwatch is stopped 2016-09-12 03:13:37 -07:00
Phillip Hsu
6a33d42583 Clear laps table when stopping stopwatch from notification 2016-09-12 02:04:03 -07:00
Phillip Hsu
47413edba3 Implement handling stop action in StopwatchNotificationService 2016-09-12 01:46:04 -07:00
Phillip Hsu
81e8e0b1ad Removed unnecessary classes. Implement handling start/pause action in StopwatchNotificationService. 2016-09-12 01:36:04 -07:00
Phillip Hsu
d6eeac1db1 Wrote potentially unnecessary stuff 2016-09-12 00:00:46 -07:00
Phillip Hsu
e157498147 Modify StopwatchNotificationService to extend ChronometerNotificationService 2016-09-11 12:37:33 -07:00
Phillip Hsu
31e0a71d9f Created ChronometerNotificationService and ChronometerNotificationThread. Modify TimerNotificationService to extend from ChronometerNotificationService. 2016-09-11 01:05:03 -07:00
Phillip Hsu
02fbee2f7b Added todo 2016-09-10 02:36:37 -07:00
Phillip Hsu
bf381a05f1 Update BaseChronometer and ChronometerDelegate with Chronometer source code in API 24 2016-09-10 02:17:21 -07:00
Phillip Hsu
cd18b33fcd Fix countdown text in timer notification 2016-09-09 21:12:02 -07:00
Phillip Hsu
a3ad4ea458 Replace CountdownDelegate with ChronometerDelegate. Create BaseChronometer as superclass of CountdownChronometer and ChronometerWithMillis. 2016-09-09 21:06:06 -07:00
Phillip Hsu
e3c78861c6 Fix multiple timer notifications from all clearing when first timer to launch cancels all of them. Prevent setting negative durations for ProgressBar animator. 2016-09-08 23:07:24 -07:00
Phillip Hsu
df19d6ec4b Implement ticking countdown text for timer notification 2016-09-08 19:32:32 -07:00
Phillip Hsu
f3aa9e8ed4 Create onTimeSet() API for subclasses of BaseTimePickerDialog instead of letting them access mCallback directly 2016-09-07 17:15:41 -07:00
Phillip Hsu
022153fec1 Reconsider ViewHolder item ID for tag making 2016-09-07 16:54:41 -07:00
Phillip Hsu
e1d858a06a Removed considerations of item ID and position from tag making method 2016-09-07 02:51:05 -07:00
Phillip Hsu
17ad81d55e Create DialogFragmentController to manage showing and restoring dialogs 2016-09-07 02:20:11 -07:00
Phillip Hsu
e0ddd0b702 Create AddLabelDialogController to manage showing and restoring AddLabelDialog 2016-09-06 19:50:05 -07:00
Phillip Hsu
51469fa282 Apply dark theme overlay to appbar 2016-09-06 18:43:23 -07:00
Phillip Hsu
1cc87a828e Set appbar elevation 2016-09-06 18:32:33 -07:00
Phillip Hsu
f3e01995a1 Fix layout of EditTimerActivity. Create landscape layout. 2016-09-06 18:08:02 -07:00
Phillip Hsu
5d5002a6d7 Add delete menu item for TimerViewHolder 2016-09-06 14:54:42 -07:00
Phillip Hsu
f9b09f29a1 Persist label change to Timer as it is made. Fixed bug where label wasn't binding correctly afterward because of wrong parameter ordering when creating Timer instance in TimerCursor. 2016-09-06 02:42:26 -07:00
Phillip Hsu
edf33240e6 Create empty view for RecyclerViewFragment 2016-09-05 23:31:01 -07:00
Phillip Hsu
34930fa2b3 Change timer notification icons 2016-09-05 19:17:54 -07:00
Phillip Hsu
2f202467bb Change alarm notification icons 2016-09-05 18:30:27 -07:00
Phillip Hsu
f4addce363 New icon for auto silenced text 2016-09-05 18:17:32 -07:00
Phillip Hsu
ed351ab859 Increase icon size for RingtoneActivity buttons 2016-09-05 17:32:43 -07:00
Phillip Hsu
d5a7d16c72 Change header content style of RingtoneActivity subclasses 2016-09-05 16:31:59 -07:00
Phillip Hsu
b27720b2df Use ?attr/colorPrimary for RingtoneActivity background and dark theme overlay on text 2016-09-05 16:21:52 -07:00
Phillip Hsu
d504f98734 Use DateFormatSymbols to get weekday labels for the device locale. Remove corresponding string resources. 2016-09-05 15:10:55 -07:00
Phillip Hsu
d15f3f85a4 Apply correct tint to dismiss button icon 2016-09-05 03:39:58 -07:00
Phillip Hsu
c7fd4ac93f Move looping ringtone code to its own class. Use looped playback for RingtonePickerDialog. 2016-09-05 02:59:51 -07:00
Phillip Hsu
c44eefc472 Create our own MediaPlayer to play ringtone instead of using the Ringtone API, so we can set looped playback 2016-09-05 02:26:02 -07:00
Phillip Hsu
0a42097dcf Always enable alarm on new time set 2016-09-05 00:50:47 -07:00
Phillip Hsu
16a853157b Fix occurrences of crashing by snoozing alarm from notification by parceling and unparceling Alarm in UpcomingAlarmReceiver instead of retrieving from database with long id 2016-09-05 00:22:58 -07:00
Phillip Hsu
d44caf5255 Reschedule alarm on every change so previous PendingIntent that launches RingtoneActivity is cancelled and updated 2016-09-04 23:11:18 -07:00
Phillip Hsu
ecf41785c3 Persist ringtone change as it is made. Restore ringtone selected callback on rotate. 2016-09-04 00:43:51 -07:00
Phillip Hsu
66cb180887 Implement RingtonePickerDialog 2016-09-03 23:41:06 -07:00
Phillip Hsu
1339ad6d00 Created BaseAlertDialogFragment and RingtonePickerDialog. Change AddLabelDialog to extend from BaseAlertDialogFragment. 2016-09-03 21:57:11 -07:00
Phillip Hsu
944482a767 Use AppCompatEditText to get tinting for pre-21 2016-09-03 20:31:34 -07:00
Phillip Hsu
41a36bbe70 Set ID on EditText so it automatically saves state on rotation 2016-09-03 20:26:58 -07:00
Phillip Hsu
dc8b244369 Collapse expanded ViewHolder when OK is clicked 2016-09-03 20:19:56 -07:00
Phillip Hsu
f13897cc8e Fix snackbar not showing when alarms are created on 21+ 2016-09-03 19:54:13 -07:00
Phillip Hsu
3bbee9a641 Persist time change as it is made 2016-09-03 18:45:30 -07:00
Phillip Hsu
f9c4d8ed20 Change OnCheckedChange to OnClick for vibrate checkbox 2016-09-03 18:14:46 -07:00
Phillip Hsu
95f2e90fa8 Change OnCheckedChange to OnClick for day toggles 2016-09-03 18:11:19 -07:00
Phillip Hsu
c0c7d521df Persist recurring day change as it is made 2016-09-03 17:57:19 -07:00
Phillip Hsu
554dd49f0a Persist vibrate change as it is made 2016-09-03 17:41:12 -07:00