mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-28 07:25:42 -04:00
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>