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

[Android] Stop using destroyed fragment in pairing complete callback #9729

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

austinh0
Copy link
Contributor

Problem

  • In DeviceProvisioningFragment, if pairing complete is called after commissioning complete, it will try to access the already-destroyed DeviceProvisioningFragment's fragmentManager.
  • This case happens for IP commissioning -> on/off control without restarting the app.

Change overview

  • Skip the pairing complete logic if commissioning complete was called.

Testing

  • Perform IP commissioning and on/off control in one setup flow.

@woody-apple
Copy link
Contributor

@project-chip/reviewers-amazon @project-chip/reviewers-google @project-chip/reviewers-comcast @project-chip/reviewers-samsung ?

@andy31415 andy31415 merged commit a52731f into project-chip:master Sep 17, 2021
mleisner pushed a commit to mleisner/connectedhomeip that referenced this pull request Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants