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:
Zane Schepke
2025-04-17 04:08:19 -04:00
committed by GitHub
parent d46a0653f1
commit a09501aaf5
16 changed files with 155 additions and 40 deletions
@@ -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() }
}
}
}