-
Notifications
You must be signed in to change notification settings - Fork 1
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
Notify about DataBroker Disconnect #14
Conversation
Closes: eclipse-kuksa#12 Signed-Off-By: Andre Weber <andre.weber3@etas.com>
Getting the following error message in the logs after starting / disconnecting the data broker |
The java mode does not seem to work with disconnecting |
kuksa-sdk/src/main/kotlin/org/eclipse/kuksa/DataBrokerConnection.kt
Outdated
Show resolved
Hide resolved
Good catch postCreate was "to early" to register the listener, because the DataBrokerEngine is switched when toggling the Java-Compatibility mode. Registering now in connect() and unregistering in disconnect() resp. in onDestroy() in case the connection is not manually closed. |
I can't reliably reproduce this issue, however I always got it once in a few tries. |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. App works for me in Andorid Studio and an emulated Pixel 3a. What I tested:
- Connect with one device and then calling disconnect and connecting again -> worked like a charm
@wba2hi could you do a manual rebase please? |
Closes: #12