underlyingNetworkLabel() returned the first non-VPN network from allNetworks, whose order is unspecified - Android keeps the cellular network agent alive in parallel with Wi-Fi, so on Wi-Fi the details sheet could show "Сотовая сеть". Wi-Fi now wins when present (same precedence as NetworkMonitor's trust decision); cellular is only reported when no Wi-Fi network exists.