Fix the APT handler was removed after the response handler was called #1572
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1559
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
Unit tests were run. New unit tests were investigated and added.
AddCommand
handler is removed by the time the handler is called.Core Tests
Tests were performed against the HU based on the reported bug.
PAPT
run from the handler of thePAPT
to ensure that a new audio pass thru modal appears.Core version / branch / commit hash / module tested against: Sync 3.0 (17
HMI name / version / branch / commit hash / module tested against: Sync 3.0
Summary
This PR changes the order of operations in the
SDLResponseDispatcher
to remove command / button / audio pass thru handlers before calling the response handler of the delete / unsubscribe.Changelog
Bug Fixes
PAPT
response handler is called, leading to situations where the APT handler would never be called if a newPAPT
were started from the oldPAPT
response handler.Tasks Remaining:
CLA