From 744ef74d37ac692fa102fb0537ba5033155758fb Mon Sep 17 00:00:00 2001 From: Kausik Sinnaswamy Date: Tue, 5 Jun 2012 21:46:21 +0530 Subject: [PATCH] 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 --- src/com/android/settings/bluetooth/CachedBluetoothDevice.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index 5a4f9e8ccce..6fc07a39650 100755 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -507,6 +507,10 @@ final class CachedBluetoothDevice implements Comparable { .elapsedRealtime()) { connectWithoutResettingTimer(false); } + // On an incoming pairing, set all the available profiles as preferred. + for (LocalBluetoothProfile profile : mProfiles) { + profile.setPreferred(mDevice, true); + } dispatchAttributesChanged(); }