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 RxBleClient.observeStateChanges() emitting while turning BT on #556

Merged
merged 1 commit into from Mar 29, 2019

Conversation

dariuszseweryn
Copy link
Owner

Android BluetoothAdapter has 4 states. ON, OFF, TURNING_ON, TURNING_OFF. Any state other than ON evaluates to BLUETOOTH_NOT_ENABLED. For instance when the state observing starts in OFF state and adapter is turned on then a TURNING_ON state is emitted but it is not a change from the subscriber’s perspective.

Fixes #555

Android BluetoothAdapter has 4 states. ON, OFF, TURNING_ON, TURNING_OFF. Any state other than ON evaluates to BLUETOOTH_NOT_ENABLED. For instance when the state observing starts in OFF state and adapter is turned on then a TURNING_ON state is emitted but it is not a change from the subscriber’s perspective.
@dariuszseweryn dariuszseweryn added the bug Bug that is caused by the library label Mar 22, 2019
@dariuszseweryn dariuszseweryn added this to the 1.9.1 milestone Mar 22, 2019
@dariuszseweryn dariuszseweryn self-assigned this Mar 22, 2019
@dariuszseweryn dariuszseweryn merged commit fc36edc into master Mar 29, 2019
@dariuszseweryn dariuszseweryn deleted the fix/client_state branch March 29, 2019 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is caused by the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant