Age | Commit message (Collapse) | Author |
|
* Since Android 12 introduced a new style, try to mimic it for this app
* Due to AndroidX and the support libraries still being old, we have to,
like Settings does with SettingsLib, create our own styles in the
desired looks
* Also adjust the color scheme to reflect Material You
* We deviated from AOSP already quite a bit, so we don't need to really
care about the change's footprint
* Clean up behind us by removing (now unused) resources and includes in
files that were modified anyways (and adjust order while on it)
* Copy CollapsibleToolbarBaseActivity and required resources from
SettingsLib - that way we can mimic the style easily without having
to move this app to system_ext or using privileged_api
* Since we always use dark layout, modify slightly so it works for us
* Remove things we don't need so we don't have to copy too many files
from SettingsLib
Change-Id: I4c81e03c71f468a9e468426a8233ad96059cb05d
|
|
Test: compile and open
Bug: 76692459
Change-Id: Ibf8e95a917fbe3e364340ed1c5fba6e66f2d8afd
|
|
Bug: 34746781
Test: manual - tap stopwatch and timer text. Expire a timer.
Change-Id: Icbb1be97e7945b790b2a921b34e5ff009f9b8c3e
|
|
Bug: 25693255
Test: manual - basic sanity check on API 25 device
Change-Id: I2a7e9ccfc695017a91b66a88e71b769f8da667ef
|
|
Bug: 32672702
Test: manual: check expanded and collapsed alarms with talkback
Due to how talkback works, clicking an expanded alarm view holder with talkback
enabled would trigger the wrong behavior (either toggling Wednesday in repeat
days or opening the ringtone picker). This CL removes the accessibility importance
from the alarm view holders so this is no longer an issue.
Change-Id: I7804e90aec72c7458ad3694cd8c2f58c3ead454b
|
|
Bug: 32486971
Test: manual - Check stopwatch interactions
Change-Id: I7ccd35b6874ffc49fbdd0c3782035b07bcc66e4d
|
|
Bug: 31656192
Test: manual - tap timer text to toggle state.
Change-Id: Iaacc17b936d01c34d06306b668491df64497c1aa
|
|
Bug: 29981701
Test: manual - Confirm time formats correctly on timer
Change-Id: I21a3ad291c9c6fa08481466d799262fa7f989f35
|
|
Bug: 32018011
Test: manual - check for highlighting on long press
Change-Id: I1d223cc28752c4061fcf9669c13d381ce8b738b6
|
|
Bug: 31348653
Test: manual - Play and pause timer and stopwatch
Timer and stopwatch left and right buttons now use text instead of images.
Timer "add minute" and "reset" button now also uses text.
Change-Id: Ie9e19cc7c4162c3fb4c77d92cb53517bf3af83f6
|
|
Bug: 29981701
Test: manual - Confirm time formats correctly on timer
Change-Id: Iabd62dc146345d07cd037909d9f0b3d289e7b507
|
|
Bug: 8101723
Upon device shutdown and reboot, the stopwatch will resume state. If
the stopwatch was running, it will continue to run as well as account
for the time that the device was off. Additionally, all timers that
are on the device will resume state. If the timer was running, it will
continue to run on device reboot. If the timer was missed by less than
1 minute, the timer will still go off. If the timer was missed by more
than 1 minute, the timer will go to a new "missed" state and give the
user a notification that a timer has been missed.
Change-Id: Ib7f199ef5be4714b831450933c574f39824d15dc
Stopwatches and timers continue to work after device reboot.
Bug: 8101723
Upon device shutdown and reboot, the stopwatch will resume state. If
the stopwatch was running, it will continue to run as well as account for
the time that the device was off. Additionally, all timers that are on the
device will resume state. If the timer was running, it will continue to run
on device reboot. If the timer was missed by less than 1 minute, the
timer will still go off. If the timer was missed by more than 1 minute, the
timer will go to a new "missed" state and give the user a notification
that a timer has been missed.
Change-Id: I831d7a5172a3cede595db1b62e503ecc8c4c55c2
|
|
Bug: 26840878
Timer circles and stopwatch circles, when displayed, are always 60%
of the container width in portrait or 90% of the container height in
landscape.
When the parent container falls below 320dp width and height, the
circles may disappear as they are too small to remain useful.
Change-Id: Ice7fb1ccd4db9abd215141e427e1f8ddd4b64fc0
|
|
Bug: 28065873
String.format(...) was being called in a tight loop to format various
times (e.g. lap times, accumulated times, etc) when laps exist. This produces
more garbage for the VM to collect than is necessary. Formatting the
times directly into a reusable StringBuilder significantly reduces the
memory churn and removes intermittent GC pauses on older platforms
and low-memory devices.
Change-Id: Iad574cea7f827623bb4854458d43df76967d8c62
|
|
Bug: 26292420
Change-Id: Ib5d8b09fa9d70f408c3097654bae5b6906fac048
|
|
Bug: 24816218
Bug: 25494722
This refactoring introduces a Timer domain object. Instances of these
domain objects are fetched via a DataModel class that is the single point
of reference for all timer data. This allows the data to be shared across
the entire application. In particular, the timer notifications, TimerFragment
and ExpiredTimersActivity all draw upon the same model to determine
what the state of the timers are.
IMPORTANT: The public intent com.android.deskclock.action.STOP_TIMER
has been renamed to com.android.deskclock.action.PAUSE_TIMER to be
more accurate.
Change-Id: Ib904e80a25c6de1861de2b395bec27db16ff0e66
|