Skip to content
Snippets Groups Projects
Commit a85acd54 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Correct return of BluteoothDevice#createBond

When two apps try to create bond to the same
remote device, the second call would return false,
even when it didn't fail.
This is not consistent with the Javadoc, which states
that the method should return true if bonding is began.

This change makes the method return true when it's already bonding,
which allows callers to expect a BOND_STATE_CHANGED intent
to be broadcast when the bond is complete.

Bug: 269056263
Test: atest BluetoothInstrumentationTests
Change-Id: Ic30bb010c09738eecfc8a0285accb4db0ddeeefc
parent 7efc8cbf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment