On an incoming pairing of a newly paired device, setPreferred of the

profiles needs to be called to enable incoming/outgoing connections

Change-Id: Ic90e4857fb119e31639e4a50db48b084201aadb2
This commit is contained in:
Kausik Sinnaswamy
2012-06-05 21:46:21 +05:30
committed by Matthew Xie
parent 6e4060212e
commit 744ef74d37

View File

@@ -507,6 +507,10 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> {
.elapsedRealtime()) { .elapsedRealtime()) {
connectWithoutResettingTimer(false); connectWithoutResettingTimer(false);
} }
// On an incoming pairing, set all the available profiles as preferred.
for (LocalBluetoothProfile profile : mProfiles) {
profile.setPreferred(mDevice, true);
}
dispatchAttributesChanged(); dispatchAttributesChanged();
} }