Skip to content

Commit

Permalink
Kotlin format
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Sep 11, 2024
1 parent e854712 commit 23a4b86
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ class DefaultNavigationViewModel(
lastLocation =
when (coreState.tripState) {
is TripState.Navigating -> {
Log.d("NavigationViewModel", "Course is ${lastLocation?.courseOverGround?.degrees} at idx ${coreState.tripState.currentStepGeometryIndex}")
Log.d(
"NavigationViewModel",
"Course is ${lastLocation?.courseOverGround?.degrees} at idx ${coreState.tripState.currentStepGeometryIndex}")
coreState.tripState.snappedUserLocation
}
is TripState.Complete,
TripState.Idle -> locationProvider.lastLocation
}

uiState(coreState, spokenInstructionObserver?.isMuted, lastLocation)
// This awkward dance is required because Kotlin doesn't have a way to map over
// StateFlows
Expand Down

0 comments on commit 23a4b86

Please sign in to comment.