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

Avoid unnecessary BroadcastReceiver registration for monitoring device orientation #1303

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Jun 28, 2021

Goal

Avoids unnecessary registration of a BroadcastReceiver that is used to monitor the device's orientation. The changeset implements the ComponentCallbacks instead to track when the orientation changes, and updates DeviceDataCollector so that it holds this value as state.

Testing

Added to existing unit tests and verified manually that breadcrumbs are still automatically recorded for orientation changes.

@fractalwrench fractalwrench changed the title Avoid unnecessary BroadcastReceiver for monitoring device orientation Avoid unnecessary BroadcastReceiver registration for monitoring device orientation Jun 28, 2021
@fractalwrench fractalwrench force-pushed the PLAT-6763/orientation-tracking branch 2 times, most recently from 035d4d3 to b683654 Compare June 28, 2021 13:11
@fractalwrench fractalwrench requested a review from lemnik June 28, 2021 14:37
@fractalwrench fractalwrench marked this pull request as ready for review June 28, 2021 14:37
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@fractalwrench fractalwrench force-pushed the PLAT-6763/orientation-tracking branch from b683654 to 702283c Compare June 29, 2021 08:44
@fractalwrench fractalwrench merged commit 7b7d8e9 into next Jun 29, 2021
@fractalwrench fractalwrench deleted the PLAT-6763/orientation-tracking branch June 29, 2021 09:35
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