summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/clock/ClockManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Prevent NPE when current clock is nullSantiago Etchebehere2019-06-261-0/+4
| | | | | Fixes: 136112716 Change-Id: I2c4cae0b5b8c7d3078a9cc5883ba68eab3a84658
* Add timestamp when applying a clock faceRobert Snoeberger2019-06-131-2/+21
| | | | | | | | | | Bug: 134687399 Test: Applied clock and checked settings with `adb shell settings get secure lock_screen_custom_clock_face`. Test: Changed clock face, quit picker, and checked that correct current clock face was shown when I reopened. Change-Id: Ib995f6bb60378a8c13e8107c5ed5167447d5ae79
* Add activity for just clock face picker.Robert Snoeberger2019-04-161-23/+15
| | | | | | | | | | | | The activity can be started by an intent with action: com.google.android.apps.wallpaper.ACTIVITY_CLOCK_FACE_PICKER When the activity finishes, it sets the ID of the selected clock into an extra with name "clock_face_name". Bug: 130021301 Test: Launched activity with `adb shell am start -a "com.google.android.apps.wallpaper.ACTIVITY_CLOCK_FACE_PICKER"` Change-Id: Iea974d011b786587300564e3aa25f7e85add6fb2 Test: Checked that clock not changed on lock screen/AOD
* Add logging statements for theme picker eventsSantiago Etchebehere2019-04-121-1/+5
| | | | | Bug: 129365634 Change-Id: I0b3e9a5d40561f0da4473cf385eb1ce9a5d9207b
* Custom Theme 7/n: delete custom themeSantiago Etchebehere2019-03-211-1/+1
| | | | | | | | | Add delete option on custom theme fragments, and reload the options when going back after deleting to ensure we show the correct ones. Bug: 124796742 Change-Id: I23fa0f418a3872a5426faa4b7d514bc0395f79b5
* Add wallpaper support to theme bundlesSantiago Etchebehere2019-02-121-3/+7
| | | | | | | | | Show wallpaper preview if available, show a checkbox to keep the current wallpaper and apply the theme's wallpaper if needed. Bug: 120559294 Change-Id: I229ab6e3372ace8218356d965e8d38f074e95061
* Implement "Apply theme" for default theme.Santiago Etchebehere2019-02-061-1/+8
| | | | | | | | Default theme requires disabling current overlays so it needs a different implementation. Bug: 120559294 Change-Id: I287d285a74c5b123f807b6589a2e81572abc30d0
* ThemePicker: Implement the Clock sectionSantiago Etchebehere2019-01-221-0/+48
Add a Fragment to show and apply available clockfaces. A few more iterations are needed on the UI but this CL focuses on the functionality. Bug: 120560400 Change-Id: I809cb861cf4c03c4b6d84b94e839300dbea200a1