Files
Meshtastic-Android/feature
James Rich 2c06a8019e feat(connections): detect & inform about disabled Bluetooth / Wi-Fi
Mirror the GPS-disabled-vs-permission-denied distinction for the BLE and
network transports:

- core/ui: add isBluetoothDisabled() (adapter off) + isWifiUnavailable()
  (no Wi-Fi/Ethernet), plus rememberOpenBluetoothSettings()/rememberOpenWifiSettings()
  — alongside the existing isGpsDisabled()/rememberOpenLocationSettings()
- extract a reusable RecoveryCard from PermissionRecoveryCard (errorContainer
  message box + one recovery action); PermissionRecoveryCard now delegates to it
- ConnectionsScreen: when a transport's permission is granted but its adapter is
  off, show an inline recovery banner. The BLE scan toggle routes to Bluetooth
  settings when the radio is off (scanning can't work); the network banner is
  informational (manual TCP can still work off-Wi-Fi)
- detection refreshes on ON_RESUME, so the banner clears after the user returns
  from the adapter settings screen

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 13:41:43 -05:00
..