Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed HMI shows identical navigation buttons for all registered apps #591

Conversation

AKalinich-Luxoft
Copy link
Contributor

@AKalinich-Luxoft AKalinich-Luxoft commented Aug 19, 2021

Fixes #578

This PR is ready for review.

Testing Plan

Precondition:
1. SDL and HMI are started
2. Mobile device connected
3. Navigation app1 and navigation app2
4. Mobile app1 is activated

Steps to reproduce:

  1. Mobile app requests SubscribeButton for of navigation buttons (e.g. NAV_ZOOM_IN, NAV_ZOOM_OUT)
  2. Go to Nav Buttons on app1 HMI screen
  3. Go to Nav Buttons on app2 HMI screen

Summary

Looks like all application models used a reference to the same instance of the map NAV_BUTTONS so in case if one navigation app updates its subscriptions, the same changes would be applied to all other navigation apps and vice versa.
To fix that, each application now makes a copy of the initial map instead of getting a reference to it.

CLA

@AKalinich-Luxoft
Copy link
Contributor Author

@theresalech this PR is ready for Livio review

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