Logs
This commit is contained in:
@@ -134,7 +134,6 @@ internal class ClusterSession : CarSession(), NavigationListener {
|
||||
|
||||
|
||||
fun updateLocation(location: Location) {
|
||||
Log.d(TAG, "updateLocation $location")
|
||||
surfaceRenderer.updateLocation(location, "")
|
||||
}
|
||||
|
||||
|
||||
@@ -485,7 +485,6 @@ class NavigationSession : CarSession(), NavigationListener, NavigationObserverCa
|
||||
val distance = location.distanceTo(snappedLocation)
|
||||
when {
|
||||
distance > MAXIMAL_ROUTE_DEVIATION -> {
|
||||
Log.d(TAG, "Maximal route deviation")
|
||||
stopNavigation()
|
||||
navigationScreen.calculateNewRoute(routeModel.navState.destination)
|
||||
return false
|
||||
|
||||
@@ -268,7 +268,6 @@ class SurfaceRenderer(
|
||||
*/
|
||||
override fun onScale(focusX: Float, focusY: Float, scaleFactor: Float) {
|
||||
synchronized(this@SurfaceRenderer) {
|
||||
Log.d(TAG, "onScale")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,6 @@ class TextToSpeechManager(private val carContext: Context) {
|
||||
})
|
||||
}
|
||||
initialized = true
|
||||
Log.d("TTS", "Initialization Success")
|
||||
} else {
|
||||
Log.e("TTS", "Initialization Failed")
|
||||
}
|
||||
|
||||
@@ -144,7 +144,6 @@ fun MapLibre(
|
||||
fun StartEndLayer(routeData: String?) {
|
||||
if (!routeData.isNullOrEmpty()) {
|
||||
val end = createEndCollection(routeData)
|
||||
Log.d("Map End", " $end")
|
||||
val routes = rememberGeoJsonSource(GeoJsonData.JsonString(end))
|
||||
val img = image(painterResource(R.drawable.sports_score_48px), drawAsSdf = true)
|
||||
SymbolLayer(
|
||||
|
||||
@@ -599,22 +599,6 @@ class NavigationViewModel(private val repository: NavigationRepository) : ViewMo
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries Tankerkoenig API for fuel prices on current road.
|
||||
*
|
||||
*/
|
||||
fun updateFuelPrices(
|
||||
location: Location,
|
||||
) {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
synchronized(this) {
|
||||
val stations =
|
||||
FuelPrices().getFuelPrices(location, 3)
|
||||
Log.d(TAG, "FuelPrices $stations")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves a place as a favorite in Preferences.
|
||||
*/
|
||||
|
||||
@@ -62,7 +62,6 @@ class RouteCalculator(var routeModel: RouteModel) {
|
||||
steps[match.stepIndex].waypointIndex = match.waypointIndex
|
||||
steps[match.stepIndex].wayPointLocation = match.location
|
||||
}
|
||||
Log.d(TAG, "FindStep optimized: count=$searchCount, dist=$nearestDistance")
|
||||
return
|
||||
}
|
||||
lastDistance = distance
|
||||
@@ -73,7 +72,6 @@ class RouteCalculator(var routeModel: RouteModel) {
|
||||
steps[match.stepIndex].waypointIndex = match.waypointIndex
|
||||
steps[match.stepIndex].wayPointLocation = match.location
|
||||
}
|
||||
Log.d(TAG, "FindStep not optimized: count=$searchCount, dist=$nearestDistance")
|
||||
}
|
||||
|
||||
private fun stopSearch(nearestDistance: Float, distance: Float, increaseCount: Int): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user