A new setting in Settings > Alarms: while the ring screen shows, the volume buttons change the volume (the default, and what they did before), snooze, dismiss, or do nothing. It is app-wide, stored next to the clock defaults, and included in the backup; a backup without it restores "change the volume". A press is made without looking, so VolumeButtonPolicy keeps it from ending an alarm more finally than the ring screen would. Dismiss with a dismiss challenge set snoozes instead, so the challenge still stands. With no snoozes left, Snooze (and Dismiss behind a challenge) falls back to changing the volume, never to the engine's refused-snooze path, which dismisses. The key's snooze also asks the engine to keep ringing if the limit turns out to be reached after all (AlarmEngine.snooze's new dismissIfRefused). The ring screen decides whether a press is its own on key down and keeps that for the release, leaves the keys alone once another alarm has taken over the ring, and ignores a second snooze or dismiss while the first is still running. Only the ring screen handles the keys. While the ring is a heads-up over another app, a background app gets no key events, and the one way around that does not hold up: a remote-playback MediaSession whose VolumeProvider takes the keys. On Android 13 and later MediaSessionRecord.canHandleVolumeKey refuses such a session from an app without a MediaRouter2 routing session, which Clockula's would be, so on current Pixels the keys never reach it. Where it does work, it loses to whatever app is in front or played last, shows a cast-volume slider and a phantom media player, and takes media buttons while the alarm rings. AOSP DeskClock and BlackyHawky's Clock also handle the keys in their alarm activity only. ARCHITECTURE.md records the limitation. Fixes #18
4.0 KiB
4.0 KiB
Changelog
All notable changes to Clockula are documented here.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Tag sections feed the release notes; see docs/RELEASING.md.
[Unreleased]
The first release of Clockula: alarms, timers, a stopwatch and a world clock.
Added
- Alarms. Alarms are scheduled as real alarm clocks, exempt from battery saving and shown on the lock screen and in the status bar. They survive a reboot, a process kill and a change of the device's clock, and daylight-saving nights neither skip nor double one. If the full-screen or notification permission is denied, an alarm still rings, and when no sound can play it vibrates.
- An alarm list that shows when each alarm will ring and marks the next one. Changes apply as you make them, with no Save button.
- Repeat days that start on your locale's first day of the week, and a "skip next alarm" switch so you can sleep in once without turning the alarm off.
- Per-alarm sound, vibration, gradual volume, snooze length and limit, and a dismiss challenge (a quick sum or a two-second hold). Each one can follow the app default, so changing a default later still reaches it.
- Your own sounds: the device's alarm tones, the "Timer expired" sound from Android's own Clock, a file you pick, Silent (which still vibrates), or music from an app that shares its library, such as VLC or AntennaPod. If the music can't play, or might not be heard, the alarm rings with the default sound instead.
- A ring screen over the lock screen with snooze and dismiss. The dismiss challenge always gives you a way out, works with a screen reader, and Back can't silence an alarm.
- Choose what the volume buttons do while an alarm rings: change the volume (as before), snooze, dismiss or nothing. Dismiss still respects the dismiss challenge by snoozing instead, and a snooze press with no snoozes left changes the volume rather than ending the alarm. It works while the ring screen is showing.
- Timers. Run several at once, each with its own label, length and sound, set from a keypad with saved presets. Pause, resume, reset and +1 min work from the timer, from the live pill and from the notification. A finished timer turns the screen on and opens over the lock screen with Stop and +1 min. Timers keep counting through a reboot and aren't affected by changes to the clock.
- Stopwatch with laps, the fastest and slowest marked, and Lap and Pause in the notification. It keeps counting while the app is closed.
- World clock. An analog face for your own time, plus cities from the device's time-zone database, searchable in your language. Each city shows the offset from your time and whether it's a different day there. Reorder them by dragging or with a screen reader, and set a home time zone or follow the device.
- A live pill that shows whatever is counting from every tab.
- Swipe between tabs on phones. Tablets and foldables get a side rail.
- Other apps can set, show, snooze and dismiss alarms and timers through Android's standard alarm intents, so assistants and automation apps work with Clockula. A voice-set alarm cleans up after itself once dismissed.
- Settings: theme, dynamic colour, language, and the defaults every new alarm and timer inherits.
- Back up alarms, timers, world clocks and settings to a JSON file, and restore them on this device or another one.
- "Why might my alarm not ring?", a self-check that reads your device's real state: permissions, battery optimisation, Do Not Disturb, alarm volume, and whether the system has Clockula's next alarm. It links straight to the setting that fixes each problem.
- Home-screen widgets: next alarm, timer (with controls), a quick timer, and analog and digital clocks that show your world clocks at larger sizes. Each widget can follow the system theme or stay light or dark, and choose what a tap opens.