Skip to content

Close phone ringing screen when watch stops or snoozes alarm#181

Merged
ScottMorris merged 1 commit intomainfrom
fix/watch-stop-closes-ringing-screen
Mar 2, 2026
Merged

Close phone ringing screen when watch stops or snoozes alarm#181
ScottMorris merged 1 commit intomainfrom
fix/watch-stop-closes-ringing-screen

Conversation

@ScottMorris
Copy link
Copy Markdown
Contributor

Summary

  • closes the phone ringing screen when backend lifecycle events indicate the active alarm was dismissed or snoozed
  • aligns the phone UI with watch-initiated stop/snooze actions
  • adds a guard to avoid duplicate close attempts when local actions and backend events race

Testing

  • verified on device: stopping the alarm on watch now stops phone ringing/vibration and closes the phone ringing screen
  • pnpm --filter threshold test -- src/screens/Ringing.test.tsx

**What changed**
- subscribe the ringing screen to `alarm:dismissed` and `alarm:snoozed`
- close the active ringing UI when the incoming event alarm id matches the current alarm
- add a close guard to prevent duplicate close attempts from local actions and backend events

**Why**
- keep phone UI state aligned with watch-initiated stop/snooze actions
- ensure the ringing screen closes when ringing/vibration has already stopped
@ScottMorris ScottMorris added bug Something isn't working android Android toolchain and mobile CI concerns wear-os Wear OS platform ringing Ringing features and issues events Event handling ui User interface labels Mar 2, 2026
@ScottMorris ScottMorris merged commit 6d77506 into main Mar 2, 2026
5 checks passed
@ScottMorris ScottMorris deleted the fix/watch-stop-closes-ringing-screen branch March 2, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Android toolchain and mobile CI concerns bug Something isn't working events Event handling ringing Ringing features and issues ui User interface wear-os Wear OS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant