Added small tweaks to Sources, Components and strings

This commit is contained in:
Arty Bishop committed 2026-07-31 12:27:25 +02:00
1 parent f585372594
commit 2d3adfc6a6
21 files changed
+485 -346

No files matched your search

@@ -135,6 +135,13 @@ class MainContainer(private val context: Context) : IMainContainer {
return SensorsRepo(manager, displayManager)
}
override fun providePairedBluetoothDevices(): List<Pair<String, String>> = buildList {
try {
val manager = context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager
manager.adapter?.bondedDevices?.forEach { add(Pair(it.name ?: "Unknown", it.address ?: "")) }
} catch (_: SecurityException) {}
}
private fun provideDatabaseRepo(): IDatabaseRepo {
val dbDispatcher = Dispatchers.Default
val dataParser = DataParser(dbDispatcher)
@@ -62,7 +62,7 @@ class SelectionRepo(
override fun getCurrentTypes() = currentTypes.value
override fun getTypesList() = Sources.satelliteDataUrls.keys.sorted().toMutableList().apply {
removeAt(0)
remove("All")
}
override suspend fun getEntriesFlow() = withContext(dispatcher) {