fix(ui): recognize VPN and all networks for network scan availability#5882
Conversation
Check all system networks instead of only Android's default network for WiFi availability. Treat WiFi, Ethernet, and VPN as valid network-scan transports; keep cellular-only as unavailable. Show the network-scan warning while the Network section is visible or scan is actively running.
d114c73 to
0aa00e2
Compare
🖼️ Preview staleness check — advisoryThis PR modifies UI composables but does not update any
Changed UI files: What to check:
Adding previews checklist:
If this PR does not require preview updates (e.g., logic-only change, non-visual refactor), add the |
📄 Docs staleness check — advisoryThis PR modifies user-facing UI source files but does not update any page under
Changed source files: What to check:
New page checklist (if adding a new doc page):
If this PR does not require a doc update (e.g., internal refactor, bug fix, test change), add the
|
Overview
This PR fixes the network-scan availability banner so it reflects any usable network-scan transport, not just Android's default active network.
Previously, the banner could remain visible when WiFi was connected but Android kept cellular as the default route. It also did not recognize VPN overlays such as ZeroTier or Tailscale as valid reachability paths for TCP nodes.
Key Changes
activeNetwork.hasCellularfield fromNetworkTransportInfo.Notes
This is independent from WiFi/TCP handshake recovery and was split out from #5856 to keep that PR focused on the core connection recovery changes. I plan to land this first, then rebase #5856 so the extracted hunks drop out cleanly.