Settings
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user