Add lock/unlock home-screen widget; move "Other scooter" to its own row #1

Merged
X27 merged 1 commit from lock-widget into main 2026-10-21 19:46:42 +02:00
Owner
  • New LockWidget (AppWidgetProvider + RemoteViews, no new deps): one
    button that toggles the lock. Shows Locked / Unlocked / Connecting /
    Tap to connect, in dynamic colours on Android 12+.
  • ScooterService handles ACTION_TOGGLE_LOCK: connects to the remembered
    scooter if needed, waits up to 30 s for the lock state, then flips it.
    Never locks a moving scooter.
  • AppContainer redraws the widget on link, lock and saved-scooter changes.
  • Settings: the saved scooter card keeps Connect/Disconnect and Forget;
    "Other…" becomes a "Connect another scooter" row below the controls.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- New LockWidget (AppWidgetProvider + RemoteViews, no new deps): one button that toggles the lock. Shows Locked / Unlocked / Connecting / Tap to connect, in dynamic colours on Android 12+. - ScooterService handles ACTION_TOGGLE_LOCK: connects to the remembered scooter if needed, waits up to 30 s for the lock state, then flips it. Never locks a moving scooter. - AppContainer redraws the widget on link, lock and saved-scooter changes. - Settings: the saved scooter card keeps Connect/Disconnect and Forget; "Other…" becomes a "Connect another scooter" row below the controls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New LockWidget (AppWidgetProvider + RemoteViews, no new deps): one
  button that toggles the lock. Shows Locked / Unlocked / Connecting /
  Tap to connect, in dynamic colours on Android 12+.
- ScooterService handles ACTION_TOGGLE_LOCK: connects to the remembered
  scooter if needed, waits up to 30 s for the lock state, then flips it.
  Never locks a moving scooter.
- AppContainer redraws the widget on link, lock and saved-scooter changes.
- Settings: the saved scooter card keeps Connect/Disconnect and Forget;
  "Other…" becomes a "Connect another scooter" row below the controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
X27 merged commit 9a6e008ab4 into main 2026-10-21 19:46:42 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
X27/navee-offline!1
No description provided.