feat(tiles): Quick Settings tiles for the next alarm and a quick timer
"Next alarm" reads the next-alarm widget's model and shows the weekday and time of the next alarm, or "No alarms"; a tap opens the Alarms tab, behind an unlock on a locked device, through the PendingIntent overload of startActivityAndCollapse on API 34+. "Quick timer" is the quick-timer widget's twin: at rest it shows its duration and a tap starts a transient timer through the timer engine; while that timer is active the tile is on, shows when it ends (or that it is paused or done), and a tap resets it. It works on a locked device, as the timer notification does. Its duration is a new backed-up setting, chosen by long-pressing the tile, with the widget's bounds and picker. Both are active tiles, redrawn by TileSync when the state they mirror changes rather than bound on every panel open. No new permission. Fixes #26
This commit is contained in:
1 parent
3f431a7f32
commit
da9854abf8
28 files changed
+988
-8
No files matched your search
@@ -439,4 +439,14 @@
|
||||
<string name="widget_quick_timer_custom">Custom…</string>
|
||||
<string name="widget_quick_timer_custom_title">Custom duration</string>
|
||||
<string name="widget_quick_timer_range_hint">Between 1 second and 59:59</string>
|
||||
|
||||
<!-- #26: Quick Settings tiles -->
|
||||
<string name="tile_next_alarm_label">Next alarm</string>
|
||||
<string name="tile_next_alarm_empty">No alarms</string>
|
||||
<!-- The next alarm's day and time, e.g. "Tue 07:00". %1$s: the abbreviated weekday, %2$s: the time. -->
|
||||
<string name="tile_next_alarm_subtitle">%1$s %2$s</string>
|
||||
<string name="tile_quick_timer_label">Quick timer</string>
|
||||
<!-- A running quick timer's end time, e.g. "Until 14:32". -->
|
||||
<string name="tile_quick_timer_until">Until %1$s</string>
|
||||
<string name="tile_quick_timer_config_title">Quick timer tile</string>
|
||||
</resources>
|
||||
Reference in new issue
Block a user