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

Fixes for proper error handling on calls to the Matter SDK. #46

Merged
merged 3 commits into from
Nov 15, 2022

Conversation

pierredelisle
Copy link
Contributor

  • Replaced call to chipController.openPairingWindowWithPin with openPairingWindowWithPinCallback. The former did support callback via setCompletionListener().
  • Wait for successful completion of "openPairingWindow" before calling the GPS shareDevice() API.
  • Cleaned up logs with a standardized "ShareDevice: " prefix for all multi-admin related log messages.
  • Fixed error handling and processing of the shareDevice Status LiveData.
  • Fixed typo in HomeViewModel: "com.google.android.gms.home.matter.EXTRA_DEVICE_TYPE" (was "com.google.android.gms.home.matter.EXTRA_DEVICE_TYPE").

- Replaced call to chipController.openPairingWindowWithPin with openPairingWindowWithPinCallback. The former did support callback via setCompletionListener().
- Wait for successful completion of "openPairingWindow" before calling the GPS shareDevice() API.
- Cleaned up logs with a standardized "ShareDevice: " prefix for all multi-admin related log messages.
- Fixed error handling and processing of the shareDevice Status LiveData.
- Fixed typo in HomeViewModel: "com.google.android.gms.home.matter.EXTRA_DEVICE_TYPE" (was "com.google.android.gms.home.matter.EXTRA_DEVICE_TYPE").
Copy link
Member

@aBozowski aBozowski left a comment

Choose a reason for hiding this comment

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

LGTM

@pierredelisle pierredelisle merged commit a9f59b2 into main Nov 15, 2022
@pierredelisle pierredelisle deleted the pierred/misc-fixes branch November 15, 2022 23:46
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