This commit is contained in:
Dimitris
2026-02-21 11:12:22 +01:00
parent 723707dac6
commit 71d3d17847
9 changed files with 50 additions and 103 deletions

View File

@@ -13,8 +13,6 @@ import kotlinx.coroutines.runBlocking
private const val routeUrl = "https://api.tomtom.com/routing/1/calculateRoute/"
//const val tomtomApiKey = "678k5v6940cSXXIS5oD92qIrDgW3RBZ3"
const val tomtomTrafficUrl = "https://api.tomtom.com/traffic/services/5/incidentDetails"
private const val tomtomFields =

View File

@@ -85,7 +85,7 @@ class SettingsViewModel(private val repository: SettingsRepository) : ViewModel(
viewModelScope.launch { repository.setLastRoute(route) }
}
fun onTomTomApiKeyChanged(route: String) {
viewModelScope.launch { repository.setTomTomApiKey(route) }
fun onTomTomApiKeyChanged(key: String) {
viewModelScope.launch { repository.setTomTomApiKey(key) }
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB