Skip to content

Conversation

@cafesilencio
Copy link

Description

Cherry pick of PR 6466.

Screenshots or Gifs

CHANGELOG.md Outdated
- :warning: Updated the `NavigationView` default navigation puck asset. [#6678](https://github.com/mapbox/mapbox-navigation-android/pull/6678)

Previous puck can be restored by injecting `LocationPuck2D` with the `bearingImage` set to `com.mapbox.navigation.ui.maps.R.drawable.mapbox_navigation_puck_icon` drawable:
```kotlin
navigationView.customizeViewStyles {
locationPuckOptions = LocationPuckOptions.Builder(context)
.defaultPuck(
LocationPuck2D(
bearingImage = ContextCompat.getDrawable(
context,
com.mapbox.navigation.ui.maps.R.drawable.mapbox_navigation_puck_icon,
)
)
)
.idlePuck(regularPuck(context))
.build()
}
```
- Added guarantees that route progress with `RouteProgress#currentState == OFF_ROUTE` arrives earlier than `NavigationRerouteController#reroute` is called. [#6764](https://github.com/mapbox/mapbox-navigation-android/pull/6764)
- Fixed a rare `java.lang.NullPointerException: Attempt to read from field 'SpeechAnnouncement PlayCallback.announcement' on a null object reference` crash in `PlayCallback.getAnnouncement`. [#6760](https://github.com/mapbox/mapbox-navigation-android/pull/6760)
- Fixed standalone `MapboxManeuverView` appearance when the app also integrates Drop-In UI. [#6774](https://github.com/mapbox/mapbox-navigation-android/pull/6774)
- Introduced `NavigationViewListener.onSpeedInfoClicked` that would be triggered when `MapboxSpeedInfoView` is clicked upon. [#6770](https://github.com/mapbox/mapbox-navigation-android/pull/6770)
- Each newly instantiated MapboxRouteArrowView class will initialize the layers with the provided options on the first render call. Previously this would only be done if the layers hadn't already been initialized. [#6466](https://github.com/mapbox/mapbox-navigation-android/pull/6466)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just like in #6815 (comment) you have to clean up the changelog. That always happens with cherry-picks, but that won't be an issue once we adopt the new changelog strategy by @SevaZhukov.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will lead to a conflict and a rebase will create a mess just like the last one. Here we go...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fortunately no conflict this time.

@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

Merging #6816 (349ca99) into release-v2.10 (375fb27) will increase coverage by 0.00%.
The diff coverage is 87.50%.

Impacted file tree graph

@@               Coverage Diff                @@
##             release-v2.10    #6816   +/-   ##
================================================
  Coverage            72.54%   72.54%           
- Complexity            5521     5525    +4     
================================================
  Files                  772      772           
  Lines                29894    29903    +9     
  Branches              3533     3533           
================================================
+ Hits                 21686    21693    +7     
- Misses                6793     6794    +1     
- Partials              1415     1416    +1     
Impacted Files Coverage Δ
...igation/ui/maps/internal/ui/RouteArrowComponent.kt 80.00% <ø> (-0.96%) ⬇️
.../navigation/ui/maps/route/arrow/RouteArrowUtils.kt 89.32% <ø> (ø)
...ation/ui/maps/route/line/api/VanishingRouteLine.kt 87.12% <ø> (ø)
...tion/ui/maps/route/line/api/MapboxRouteLineView.kt 88.03% <66.66%> (-0.18%) ⬇️
...on/ui/maps/route/arrow/api/MapboxRouteArrowView.kt 83.95% <92.30%> (+0.38%) ⬆️

@cafesilencio cafesilencio force-pushed the sb-cherry-pick-pr-6466-v2 branch from fe7ad7d to 0db701b Compare January 10, 2023 21:32
Comment on lines 8 to 9
- Fixed an issue with `NavigationView` that caused info panel to shrink in landscape mode with a full screen theme. [#6811](https://github.com/mapbox/mapbox-navigation-android/pull/6811)
- Fixed standalone `MapboxManeuverView` appearance when the app also integrates Drop-In UI. [#6810](https://github.com/mapbox/mapbox-navigation-android/pull/6810)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 lines need to be restored, those are the changes that I cherry-picked.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restored

…oved so that new options will take effect. (#6466)

Co-authored-by: Seth Bourget <seth@cafesilencio.net>
@cafesilencio cafesilencio force-pushed the sb-cherry-pick-pr-6466-v2 branch from 0db701b to 349ca99 Compare January 10, 2023 22:58
@cafesilencio cafesilencio merged commit d301b97 into release-v2.10 Jan 10, 2023
@cafesilencio cafesilencio deleted the sb-cherry-pick-pr-6466-v2 branch January 10, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants