Commit Graph

2 Commits

Author SHA1 Message Date
Jonas Bark
9648e5e604 overlay/ios: add Dynamic Island stop button that disconnects all devices
Replaces the trailing mode pill in the Dynamic Island expanded
region (which was redundant — the bottom row already shows the
SIM/ERG pill) with an `xmark.circle.fill` button.

Tapping the button:
1. Fires a new `StopRideIntent` App Intent.
2. That intent posts a Darwin notification
   `de.jonasbark.swiftcontrol.overlay.action.stop`.
3. `AppDelegate.swift`'s observer forwards `action: 'stop'` over
   the `bike_control/overlay_actions_ios` MethodChannel.
4. `IosOverlayController._stopRide`:
     - `core.connection.disconnectAll()`
     - `core.connection.stop()`
     - `core.settings.setOverlayEnabled(false)` so Navigation's
       auto-show doesn't immediately re-open the activity on the
       next BLE reconnect.
     - `hide()` ends the Live Activity.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 09:42:56 +02:00
Jonas Bark
b668350226 fix dynamic island 2026-05-11 14:13:19 +02:00