MapboxSpeedLimitView empty does not show after being removed
Considering this a minor issue. But there does not seem to be a way to restore the previous state for the speed limit view. This becomes apparent when attempting to remove/add the view at runtime.
Steps to trigger behavior
- Create a view with MapboxSpeedLimitView
- Get a speed limit, notice valid speed limit
- Go to location without a speed limit, notice
--empty speed limit - Swap views
Expected behavior
The speed limit view with -- should re-appear. Or there should be a way to restore the state
Actual behavior
https://user-images.githubusercontent.com/3021882/155822243-22cc8943-6463-45ae-b6cd-812dde7fad54.mp4
This could be due to the speed limit sign type being null when the speed limit view is first created. The sign type isn't determined until at leas one speed limit value is rendered. There is a PR to address this here: https://github.com/mapbox/mapbox-navigation-android/pull/5549
@kmadsen Can we retest this and close if it is fixed by the PR mentioned above?
@kmadsen is this still relevant?