android: 2.14.2 - fix network label showing cellular while on Wi-Fi

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.
This commit is contained in:
Denozordec committed 2026-10-05 01:56:46 +07:00
1 parent 7185aa4ba5
commit bc256ad369
2 files changed
+20 -7

No files matched your search

+2 -2
View File
@@ -46,8 +46,8 @@ android {
minSdkVersion 23
targetSdkVersion 36
versionCode 154
versionName "2.14.1"
versionCode 155
versionName "2.14.2"
/* Base URL of the update storage, trailing slash included */
buildConfigField "String", "UPDATE_BASE_URL", "\"${updateBaseUrl}\""