Skip to content

Commit

Permalink
added try catch to annotation parser, renamed uiState to navigationUi…
Browse files Browse the repository at this point in the history
…State
  • Loading branch information
Archdoog committed Nov 19, 2024
1 parent 85cb6c1 commit cf66c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ interface NavigationViewModel {
* model.
*/
open class DefaultNavigationViewModel(
open val ferrostarCore: FerrostarCore,
open val annotationPublisher: AnnotationPublisher<*> = NoOpAnnotationPublisher()
private val ferrostarCore: FerrostarCore,
private val annotationPublisher: AnnotationPublisher<*> = NoOpAnnotationPublisher()
) : ViewModel(), NavigationViewModel {

private val muteState: StateFlow<Boolean?> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import uniffi.ferrostar.UserLocation

class DemoNavigationViewModel(
// This is a simple example, but these would typically be dependency injected
override val ferrostarCore: FerrostarCore = AppModule.ferrostarCore,
val ferrostarCore: FerrostarCore = AppModule.ferrostarCore,
annotationPublisher: AnnotationPublisher<*> = valhallaExtendedOSRMAnnotationPublisher()
) : DefaultNavigationViewModel(ferrostarCore, annotationPublisher), LocationUpdateListener {
private val locationStateFlow = MutableStateFlow<UserLocation?>(null)
Expand Down

0 comments on commit cf66c20

Please sign in to comment.