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

Fixed https://github.com/Polidea/RxAndroidBle/issues/60 #62

Closed
wants to merge 9 commits into from

Conversation

mzgreen
Copy link
Collaborator

@mzgreen mzgreen commented Aug 24, 2016

Connection was emitted incorrectly in establishConnection method. Observable was calling onComplete after emission which then caused that doOnUnsubscribe. This is the reason that DISCONNECTED state was emitted every time, and it should only be emitted after explicit unsubscription from connection observable.

@@ -76,6 +76,12 @@ public void addAdvertisedUUID(UUID advertisedUUID) {
}

@Override
public BluetoothDevice getBluetoothDevice() {
Copy link
Owner

Choose a reason for hiding this comment

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

is this change of places needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, just autoformatter. Do you want me to revert it to the previous state?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, for pull requests these reorderings only make it worse to read. For refactorings that are not changing code but only reordering - you can push directly.

@mzgreen
Copy link
Collaborator Author

mzgreen commented Aug 25, 2016

Done, also I've rebased to current master in order to avoid checkstyle fail due to an unused import in other part of the library.

@dariuszseweryn
Copy link
Owner

Rebased and merged into master ( f1a67da )

@dariuszseweryn dariuszseweryn deleted the issue60 branch August 25, 2016 12:06
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.

None yet

2 participants