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

ScreenManager Overlapping Button IDs #407

Merged
merged 3 commits into from
Mar 24, 2021

Conversation

renonick87
Copy link
Contributor

Fixes #405

Risk

This PR makes minor API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have verified that this PR passes lint validation
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Summary

This PR fixes the issue that would cause the ScreenManager's sub-managers to generate overlapping button IDs that trigger the same button listeners. The AlertManager will now consider the SoftButtonManager's button IDs and vice versa.

CLA

@renonick87 renonick87 changed the base branch from develop to release/1.3.0_RC March 22, 2021 20:30
@renonick87
Copy link
Contributor Author

There was an issue where the temporary set of button IDs was copying the address to the original set of button IDs so any updates to the temporary list would also reach the manager's list. I've updated the PR to clone the list to avoid this.

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.

ScreenManager should consider currently presenting SoftButtons of all sub-managers when generating button IDs.
2 participants