File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
libnavigation-core/src/main/java/com/mapbox/navigation/core Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ import kotlinx.coroutines.cancel
143143import kotlinx.coroutines.channels.Channel
144144import kotlinx.coroutines.channels.ReceiveChannel
145145import kotlinx.coroutines.launch
146+ import kotlinx.coroutines.runBlocking
146147import kotlinx.coroutines.sync.Mutex
147148import kotlinx.coroutines.sync.withLock
148149import java.lang.reflect.Field
@@ -647,8 +648,14 @@ class MapboxNavigation @VisibleForTesting internal constructor(
647648 */
648649 @Deprecated(message = " use a function withe the callback instead" )
649650 fun resetTripSession () {
650- resetTripSession {
651- // no-op
651+ runBlocking {
652+ logD(LOG_CATEGORY ) {
653+ " Resetting trip session"
654+ }
655+ navigator.resetRideSession()
656+ logI(LOG_CATEGORY ) {
657+ " Trip session reset"
658+ }
652659 }
653660 }
654661
You can’t perform that action at this time.
0 commit comments