Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c39bf1c7 authored by mitulsheth's avatar mitulsheth
Browse files

Reproduce Bug FerrostarWarapper Solution

parent 098942fe
Loading
Loading
Loading
Loading
Loading
+58 −54
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import earth.maps.cardinal.data.RoutingMode
import earth.maps.cardinal.data.room.RoutingProfileRepository
import javax.inject.Inject
import javax.inject.Singleton
import kotlin.concurrent.thread

@Singleton
class FerrostarWrapperRepository @Inject constructor(
@@ -46,6 +47,8 @@ class FerrostarWrapperRepository @Inject constructor(
    val androidTtsObserver = AndroidTtsObserver(context)

    fun setValhallaEndpoint(endpoint: String) {
        thread {
            Thread.sleep(30000)
            walking = FerrostarWrapper(
                context,
                locationRepository,
@@ -101,6 +104,7 @@ class FerrostarWrapperRepository @Inject constructor(
                routingProfileRepository
            )
        }
    }

    /**
     * Updates the routing options for the specified mode by modifying the existing wrapper.