Commit Graph

426 Commits

Author SHA1 Message Date
Phillip Hsu
0c6f7019c7 Change launcher icon 2016-09-23 14:13:21 -07:00
Phillip Hsu
d208cc3869 Remove unused and outdated code 2016-09-23 02:17:38 -07:00
Phillip Hsu
0bcaf8d2f5 Fix bug where upcoming alarm notification is left behind when single-use alarm is updated to recur on a weekday later than the current day 2016-09-22 23:26:40 -07:00
Phillip Hsu
41c4d27a09 Fix bug where deleting a recurring alarm was rescheduling it 2016-09-22 20:22:46 -07:00
Phillip Hsu
fd556db351 Moved all classes to appropriate packages 2016-09-22 01:28:30 -07:00
Phillip Hsu
3e71f01c20 Fix bug where stopping stopwatch from notification in a restarted process was not clearing the laps 2016-09-22 00:34:10 -07:00
Phillip Hsu
4885590866 Moved aospdatetimepicker package contents to timepickers package 2016-09-21 17:58:22 -07:00
Phillip Hsu
24dd975536 New ringtone.playback package, tidy up stopwatch package 2016-09-21 17:53:15 -07:00
Phillip Hsu
e38774d45e Move more classes to timers package 2016-09-21 17:46:29 -07:00
Phillip Hsu
d9307f305e Create .timers.ui package, and move TimerRingtoneService and TimesUpActivity to ringtone package 2016-09-21 17:26:16 -07:00
Phillip Hsu
01650a531f Create .timers.data package and move related classes there 2016-09-21 17:21:38 -07:00
Phillip Hsu
ecc4405726 Create list package to hold base RecyclerView components 2016-09-21 17:18:45 -07:00
Phillip Hsu
77fc69e6a9 Move alarm related classes to appropriate packages 2016-09-21 17:07:24 -07:00
Phillip Hsu
dba5fa860f Create new dialogs package and rename editalarm package to timepickers 2016-09-21 16:15:48 -07:00
Phillip Hsu
ece6844444 Fix crash related to missing view id 2016-09-21 16:01:07 -07:00
Phillip Hsu
d5c9bcaec9 Deleted deprecated and unused classes and files 2016-09-21 15:23:51 -07:00
Phillip Hsu
f720bae5c1 Changed missed alarm notification icon 2016-09-21 01:00:20 -07:00
Phillip Hsu
45105015bf Apply theme to numpad time picker 2016-09-21 00:36:53 -07:00
Phillip Hsu
020ffc921d Apply theme to grid selector time picker 2016-09-20 23:29:33 -07:00
Phillip Hsu
42137d8ae2 Apply android:alertDialogTheme for standard alert dialogs, especially those spawned in SettingsActivity 2016-09-20 22:46:43 -07:00
Phillip Hsu
4777131c4d Use colorAccentInverse for dark AlertDialog theme 2016-09-20 22:34:02 -07:00
Phillip Hsu
62d76d06b6 Change default time picker style to grid selector 2016-09-20 22:25:14 -07:00
Phillip Hsu
41fc613d39 Restore selected ringotne URI on rotation 2016-09-20 22:14:17 -07:00
Phillip Hsu
9c143045b4 Use RingtonePickerDialogController 2016-09-20 22:01:50 -07:00
Phillip Hsu
3192322811 Set correct default ringtone 2016-09-20 21:09:41 -07:00
Phillip Hsu
59a4572513 Extend from RingtonePreference 2016-09-20 20:27:31 -07:00
Phillip Hsu
82afb03c0f Create ThemedRingtonePreference and use in settings 2016-09-20 19:43:05 -07:00
Phillip Hsu
fb6d93e36c Save and restore label text on rotation 2016-09-20 18:27:31 -07:00
Phillip Hsu
744136fea2 Change style of label TextView to match Toolbar title style, especially for landscape 2016-09-20 17:47:28 -07:00
Phillip Hsu
6c9ac67bbf Fill TabLayout tabs in landscape 2016-09-20 17:36:22 -07:00
Phillip Hsu
d219f7e0c1 Deprecate AppTheme.PopupOverlay style 2016-09-20 17:30:08 -07:00
Phillip Hsu
0575a05785 Change all Toolbars to use ?themedPopupOverlay for popupTheme attribute 2016-09-20 17:28:34 -07:00
Phillip Hsu
baa2530850 Change MainActivity's Toolbar popupTheme to match current theme 2016-09-20 17:22:25 -07:00
Phillip Hsu
0096459ded Increase menu button size for timer item 2016-09-20 16:47:15 -07:00
Phillip Hsu
1e1611d01d Change RingtoneActivity to extend BaseActivity 2016-09-20 16:28:02 -07:00
Phillip Hsu
235e9c9d87 Remove unused components from the manifest 2016-09-20 16:00:51 -07:00
Phillip Hsu
690a7f3aa0 Apply any theme change on return to MainActivity 2016-09-20 03:51:30 -07:00
Phillip Hsu
980dc10d67 Change accent colors 2016-09-20 00:04:44 -07:00
Phillip Hsu
d397a1da23 Change application theme to light theme in manifest, apply theme preference in BaseActivity 2016-09-19 23:10:30 -07:00
Phillip Hsu
7cf67fd14c Create theme preference 2016-09-19 20:04:30 -07:00
Phillip Hsu
274b4d83e3 Create preference to open system date and time settings 2016-09-19 19:35:14 -07:00
Phillip Hsu
d2d1fd22fe Create timer auto silence preference. Change default values of alarm auto silence and snooze duration preferences. Remove world clock preferences. 2016-09-19 18:37:05 -07:00
Phillip Hsu
f16d3386a8 Fix bug where AlarmController not initialized when AlarmsCursorAdapter is created for the first time 2016-09-19 17:35:29 -07:00
Phillip Hsu
c3e676e7ba Test content intent for time's up notification 2016-09-19 02:42:10 -07:00
Phillip Hsu
2890b54523 Fix bug where snackbar anchor was not being initialized after rotation 2016-09-19 02:09:31 -07:00
Phillip Hsu
cae0748c49 Implement content intent for upcoming alarm notification 2016-09-19 01:56:26 -07:00
Phillip Hsu
8b73d87e3a Prevent stopping TimerRingtoneService for successive Timers within the auto silence threshold 2016-09-18 21:07:54 -07:00
Phillip Hsu
8f1a42ef53 When changes made via TimerVH, do not modify notification chronometer unless new Timer's end time is different from previous Timer 2016-09-18 17:48:17 -07:00
Phillip Hsu
07ff5d715b Add one minute to paused Timer via VH and update notification immediately 2016-09-18 17:17:01 -07:00
Phillip Hsu
fab84506fa Add one minute to chronometer in notification and update it immediately 2016-09-18 16:56:27 -07:00
Phillip Hsu
0163fd7b7e Fix bug where addOneMinute() was extending paused Timers whose end times have passed by more than a minute 2016-09-18 15:38:23 -07:00
Phillip Hsu
8022536ec8 Fix bug where pausing Timer from VH was not updating the notification action to 'resume' 2016-09-18 04:06:46 -07:00
Phillip Hsu
4aeadf2810 Implement multiple timer notifications, restore TimerNotificationService on process restart, release timer resources as they are cancelled 2016-09-18 02:53:27 -07:00
Phillip Hsu
11e64649e7 Restore getNoteTag() method 2016-09-17 20:57:19 -07:00
Phillip Hsu
ced47b7fbe Implement multiple threads and chronometers. Check that StopwatchNotificationService still works. 2016-09-17 20:13:51 -07:00
Phillip Hsu
6c1f10da8d Begin implementing multiple threads and chronometers 2016-09-17 17:05:02 -07:00
Phillip Hsu
de761e291a Override isForeground() to return false 2016-09-17 16:23:28 -07:00
Phillip Hsu
f88de024b8 Write isForeground() method 2016-09-17 16:20:10 -07:00
Phillip Hsu
3de8074511 Change content intent of timer notification to launch MainActivity and scroll to timers page 2016-09-17 03:41:39 -07:00
Phillip Hsu
398a875654 Change content intent of stopwatch notification to launch MainActivity and scroll to stopwatch page 2016-09-16 19:34:06 -07:00
Phillip Hsu
ce1c56e979 Replace getNoteTag() with getNoteId(). Replace some stray hardcoded IDs with getNoteId() 2016-09-16 18:28:08 -07:00
Phillip Hsu
e586c58c6b Tried stuff that didn't work 2016-09-16 17:55:16 -07:00
Phillip Hsu
ee689cbb3c Change ChronometerNotificationService to be a foreground service 2016-09-16 16:00:59 -07:00
Phillip Hsu
90bdbf2505 Restore current lap when StopwatchNotificationService is restarted. Change add lap icon fillColor to white. 2016-09-16 02:26:43 -07:00
Phillip Hsu
698892419b Remove mStartTime and mPauseTime instance variables and read those values from SharedPreferences. Fix bug where SeekBar became visible on rotation with a lap progress ratio of zero. Fix bug where mini FABs became invisible on rotation with the stopwatch started. 2016-09-16 00:27:29 -07:00
Phillip Hsu
c6c0ba69a3 Update all views when onSharedPreferenceChanged callback is fired, regardless of which key-value pair actually changed. Fix bug where lap's total timestamp did not account for pause durations. 2016-09-15 17:50:02 -07:00
Phillip Hsu
4d2f930fa4 Restart chronometer in notification when service recreated after process is killed 2016-09-15 13:36:45 -07:00
Phillip Hsu
facdf05602 Moved lap inserting and updating to StopwatchNotificationService 2016-09-14 22:12:13 -07:00
Phillip Hsu
ad7335c6d6 Implement ability to stop stopwatch in both app and notification 2016-09-14 00:00:33 -07:00
Phillip Hsu
8438060ac8 Show correct elapsed time when reopening app after leaving it and pausing stopwatch from notification 2016-09-13 20:17:14 -07:00
Phillip Hsu
7c381cf62f Show correct FAB icon when stopwatch is paused and returning to StopwatchFragment 2016-09-13 16:15:51 -07:00
Phillip Hsu
8f01874cbd Sync chronometers and start/pause icon state in stopwatch notification and StopwatchFragment when resuming and pausing the stopwatch 2016-09-13 04:18:06 -07:00
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