Service
This commit is contained in:
@@ -532,7 +532,6 @@ class NavigationSession : CarSession(), NavigationListener, NavigationObserverCa
|
||||
* Handles route snapping, deviation detection for rerouting, and map updates.
|
||||
*/
|
||||
fun updateLocation(location: Location) {
|
||||
Log.d(TAG, "update location $location")
|
||||
val streetName = if (routeModel.isNavigating()) {
|
||||
routeModel.currentStep().street
|
||||
} else {
|
||||
|
||||
@@ -100,7 +100,6 @@ open class NavigationScreen(
|
||||
}
|
||||
|
||||
repository.tripSuggestionFlow.asLiveData().observe(this, Observer {
|
||||
Log.d(TAG, "tripSuggestion $it")
|
||||
navigationViewModel.recentPlaces.observe(this, observerRecentPlaces)
|
||||
tripSuggestion = it
|
||||
})
|
||||
@@ -119,6 +118,7 @@ open class NavigationScreen(
|
||||
* Returns the appropriate template based on the current navigation state.
|
||||
*/
|
||||
override fun onGetTemplate(): Template {
|
||||
Log.d(TAG, "NavigationScreen $navigationType")
|
||||
val actionStripBuilder = createActionStripBuilder({
|
||||
createAction(
|
||||
carContext,
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.kouros.navigation.model
|
||||
//import com.kouros.navigation.data.Preferences.boxStore
|
||||
import android.content.Context
|
||||
import android.location.Location
|
||||
import android.util.Log
|
||||
import androidx.compose.runtime.snapshots.SnapshotStateList
|
||||
import androidx.compose.runtime.toMutableStateList
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
@@ -10,6 +11,7 @@ import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.google.gson.GsonBuilder
|
||||
import com.kouros.navigation.data.Constants
|
||||
import com.kouros.navigation.data.Constants.TAG
|
||||
import com.kouros.navigation.data.NavigationRepository
|
||||
import com.kouros.navigation.data.Place
|
||||
import com.kouros.navigation.data.Places
|
||||
|
||||
Reference in New Issue
Block a user