Commit Graph

476 Commits

Author SHA1 Message Date
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
Phillip Hsu
abc849c243 Persist label change as it is made. Keep AlarmVH expanded as content change occurs. 2016-09-03 17:36:35 -07:00
Phillip Hsu
8171a663bc Change signature of RecyclerViewFragment#onCreateAdapter() to not require Bundle param 2016-09-03 15:33:03 -07:00
Phillip Hsu
ca2da0ad66 Split RecyclerViewFragment#getAdapter() into getAdapter() and onCreateAdapter() 2016-09-03 03:15:22 -07:00
Phillip Hsu
b1ac2e60dd Initialize NumberGridTimePickerDialog with Alarm's previous hour and minute. Expand collapsed ViewHolder when time is clicked. 2016-09-02 21:27:48 -07:00
Phillip Hsu
446d7a5334 Restore expanded alarm ViewHolder on rotate 2016-09-02 20:46:09 -07:00
Phillip Hsu
adb40beed8 Open label dialog and time picker from ExpandedAlarmViewHolder 2016-09-02 19:27:41 -07:00
Phillip Hsu
5ec512d268 Save label changes 2016-09-02 17:25:31 -07:00
Phillip Hsu
8b9b4258e2 Show selected ringtone URI when opening ringtone picker 2016-09-02 00:25:11 -07:00
Phillip Hsu
c8ea8cf43a Change value of themedIconTint to be a color resource, instead of a ColorStateList resource which is not supported for the XML tint attribute of an ImageView below v21. 2016-09-01 20:55:29 -07:00
Phillip Hsu
d7b3fc6ee1 Fixed bug where a missed, non-recurring alarm that superseded a previous alarm was not disabled after exiting AlarmActivity. Fixed bug where successive alarms would cancel missed alarm notifications for previous alarms. 2016-09-01 19:39:34 -07:00
Phillip Hsu
7b81bb467f Play default ringtone if alarm has not set one 2016-09-01 16:30:03 -07:00
Phillip Hsu
732049b540 Apply themed icon tint to ringtone icon 2016-09-01 15:30:35 -07:00
Phillip Hsu
70ccc25bc6 Change textColorHint, dark theme palette 2016-09-01 14:16:00 -07:00
Phillip Hsu
7310d49430 Remove label hint 2016-09-01 13:48:10 -07:00
Phillip Hsu
bff06c66f9 Added comments about colors 2016-09-01 03:53:32 -07:00
Phillip Hsu
331f012190 Layout changes to expanded alarm item. Create ColorStateList for day toggles in code. 2016-09-01 03:28:32 -07:00
Phillip Hsu
52b2f7ed90 Use TextAppearance.AppCompat parent and change text size 2016-09-01 01:16:26 -07:00
Phillip Hsu
2218114adc Change alarm time text appearance 2016-09-01 01:09:41 -07:00
Phillip Hsu
ce9797e8fd Change timer countdown text color 2016-09-01 00:59:36 -07:00
Phillip Hsu
25b709e793 Moved stopwatch style to its own file 2016-09-01 00:55:59 -07:00
Phillip Hsu
61c4a8a3f7 Moved timer styles to their own file 2016-09-01 00:01:45 -07:00
Phillip Hsu
fcf2cacbbb Moved TimerViewHolder child view attributes to styles.xml 2016-08-31 23:54:34 -07:00
Phillip Hsu
2d6b21a3c9 New colors for dark theme palette. Toggle between start/pause icons for timer item. 2016-08-31 22:06:28 -07:00
Phillip Hsu
c21cbc1124 Themed icon colors for TimerViewHolder 2016-08-31 21:05:27 -07:00
Phillip Hsu
db3e60d4dc Thin font weight 2016-08-31 18:36:41 -07:00
Phillip Hsu
089121c86d Thin font weight 2016-08-31 17:38:09 -07:00
Phillip Hsu
3d043b0a77 Visual changes 2016-08-31 17:31:35 -07:00
Phillip Hsu
2daa1a196c Use theme overlay to get white chronometer text across both dark/light themes 2016-08-31 17:03:01 -07:00
Phillip Hsu
ca8be47550 Change background color of stopwatch chronometer to match theme's colorPrimary 2016-08-31 16:38:03 -07:00
Phillip Hsu
8a7e76e198 Comment about correcting divider color in bottom sheets 2016-08-31 16:29:01 -07:00