You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: play-services-location/core/provider/src/main/kotlin/org/microg/gms/location/network/wifi/MovingWifiHelper.kt
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ private val MOVING_WIFI_HOTSPOTS = setOf(
70
70
"Vestische WLAN",
71
71
"agilis-Wifi",
72
72
"freeWIFIahead!",
73
+
"metronom free WLAN",
73
74
// Greece
74
75
"AegeanWiFi",
75
76
// Hong Kong
@@ -93,6 +94,7 @@ private val MOVING_WIFI_HOTSPOTS = setOf(
93
94
"SBB-FREE",
94
95
"SWISS Connect",
95
96
"Edelweiss Entertainment",
97
+
"LXCREW",
96
98
// Thailand
97
99
"THAI Wireless IFE",
98
100
// United Kingdom
@@ -200,7 +202,7 @@ class MovingWifiHelper(private val context: Context) {
200
202
continue
201
203
}
202
204
try {
203
-
return use(connection) to exceptions
205
+
return use(connection) to emptyList()
204
206
} catch (e:Exception) {
205
207
exceptions.add(e)
206
208
break
@@ -224,17 +226,19 @@ class MovingWifiHelper(private val context: Context) {
224
226
val allExceptions = mutableListOf<Exception>()
225
227
for (source in sources) {
226
228
val url =URL(source.url)
227
-
withContext(Dispatchers.IO) {
228
-
val (location, exceptions) =tryConnections(listOfNotNull(network) +null, url) {
229
+
val (location, exceptions) =withContext(Dispatchers.IO) {
0 commit comments