mirror of
https://github.com/wgtunnel/android.git
synced 2026-06-02 00:29:08 +02:00
feat(lang): weblate langauge updates (#701)
Co-authored-by: Hosted Weblate <hosted@weblate.org> Co-authored-by: Matthaiks <kitynska@gmail.com> Co-authored-by: Languages add-on <noreply-addon-languages@weblate.org> Co-authored-by: solokot <solokot@gmail.com> Co-authored-by: Kachelkaiser <kachelkaiser@htpst.de> Co-authored-by: ssantos <ssantos@web.de> Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org> Co-authored-by: mak7im01 <mak7im02@gmail.com> Co-authored-by: nware-lab <nware.labs@gmail.com> Co-authored-by: 翻譯得真好下次別翻了 <x86_64-pc-linux-gnu@proton.me> Co-authored-by: Faisal Gull <mail.faisalrehman.345@gmail.com>
This commit is contained in:
+3
-9
@@ -53,10 +53,9 @@ class AndroidNetworkMonitor(
|
||||
data class TransportState(val connected: Boolean = false)
|
||||
|
||||
private val wifiFlow: Flow<WifiState> = callbackFlow {
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
suspend fun getWifiSsid(): String? {
|
||||
return withContext(ioDispatcher) {
|
||||
return withContext(ioDispatcher) {
|
||||
if (useRootShellCallback()) {
|
||||
rootShell.getCurrentWifiName()
|
||||
} else {
|
||||
@@ -69,7 +68,6 @@ class AndroidNetworkMonitor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
suspend fun handleUnknownWifi() {
|
||||
@@ -95,9 +93,7 @@ class AndroidNetworkMonitor(
|
||||
Timber.d(
|
||||
"Received update: Precise and all-the-time location permissions are enabled"
|
||||
)
|
||||
launch {
|
||||
handleUnknownWifi()
|
||||
}
|
||||
launch { handleUnknownWifi() }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -114,9 +110,7 @@ class AndroidNetworkMonitor(
|
||||
Timber.d(
|
||||
"Location Services state changed. Enabled: $isLocationServicesEnabled, GPS: $isGpsEnabled, Network: $isNetworkEnabled"
|
||||
)
|
||||
if (isLocationServicesEnabled) launch {
|
||||
handleUnknownWifi()
|
||||
}
|
||||
if (isLocationServicesEnabled) launch { handleUnknownWifi() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user