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:
committed by
Matthew Xie
parent
6e4060212e
commit
744ef74d37
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user