diff --git a/LICENSE.md b/LICENSE.md index 1bfaa410841..5e81831a9c7 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -3,7 +3,7 @@ Mapbox Navigation for Android version 2.0 Mapbox Navigation Android SDK -Copyright ©2022 - 2024 Mapbox, Inc. All rights reserved. +Copyright ©2022 - 2025 Mapbox, Inc. All rights reserved. The software and files in this repository (collectively, "Software") are licensed under the Mapbox TOS for use only with the relevant Mapbox product(s) listed at www.mapbox.com/pricing. This license allows developers with a current active Mapbox account to use and modify the authorized portions of the Software as needed for use only with the relevant Mapbox product(s) through their Mapbox account in accordance with the Mapbox TOS. This license terminates automatically if a developer no longer has a Mapbox account in good standing or breaches the Mapbox TOS. For the license terms, please see the Mapbox TOS at https://www.mapbox.com/legal/tos/ which incorporates the Mapbox Product Terms at www.mapbox.com/legal/service-terms. If this Software is a SDK, modifications that change or interfere with marked portions of the code related to billing, accounting, or data collection are not authorized and the SDK sends limited de-identified location and usage data which is used in accordance with the Mapbox TOS. [Updated 2023-04] diff --git a/changelog/unreleased/bugfixes/7908.md b/changelog/unreleased/bugfixes/7908.md new file mode 100644 index 00000000000..8bcd55f148b --- /dev/null +++ b/changelog/unreleased/bugfixes/7908.md @@ -0,0 +1 @@ +- Fixed crash on `ManeuverViewBinder` with TransitionManager#go(Scene). \ No newline at end of file diff --git a/libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/maneuver/ManeuverViewBinder.kt b/libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/maneuver/ManeuverViewBinder.kt index c33226f40b3..88c92c06899 100644 --- a/libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/maneuver/ManeuverViewBinder.kt +++ b/libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/maneuver/ManeuverViewBinder.kt @@ -1,10 +1,8 @@ package com.mapbox.navigation.dropin.maneuver -import android.transition.Scene -import android.transition.TransitionManager +import android.view.LayoutInflater import android.view.ViewGroup import com.mapbox.navigation.core.lifecycle.MapboxNavigationObserver -import com.mapbox.navigation.dropin.R import com.mapbox.navigation.dropin.databinding.MapboxManeuverGuidanceLayoutBinding import com.mapbox.navigation.dropin.internal.extensions.reloadOnChange import com.mapbox.navigation.dropin.navigationview.NavigationViewContext @@ -18,13 +16,11 @@ internal class ManeuverViewBinder( ) : UIBinder { override fun bind(viewGroup: ViewGroup): MapboxNavigationObserver { - val scene = Scene.getSceneForLayout( - viewGroup, - R.layout.mapbox_maneuver_guidance_layout, - viewGroup.context + viewGroup.removeAllViews() + val binding = MapboxManeuverGuidanceLayoutBinding.inflate( + LayoutInflater.from(viewGroup.context), + viewGroup ) - TransitionManager.go(scene) - val binding = MapboxManeuverGuidanceLayoutBinding.bind(viewGroup) return reloadOnChange( context.mapStyleLoader.loadedMapStyle,