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
diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
index 5a4f9e8..6fc07a3 100755
--- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
+++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
@@ -507,6 +507,10 @@
                         .elapsedRealtime()) {
             connectWithoutResettingTimer(false);
         }
+        // On an incoming pairing, set all the available profiles as preferred.
+        for (LocalBluetoothProfile profile : mProfiles) {
+                profile.setPreferred(mDevice, true);
+        }
         dispatchAttributesChanged();
     }