PBAP connect to alternate device.

Fix connect to first disconnect from all connected devices before
attempting to connect to a new device for PBAP Client.

Bug: 28003503
Change-Id: I1299fc146c881f359832dae2da814a4aebbfec59
This commit is contained in:
Joseph Pirozzo
2016-04-05 14:50:20 -07:00
parent bb8c30901d
commit c76c857c26

View File

@@ -144,7 +144,9 @@ final class PbapClientProfile implements LocalBluetoothProfile {
return true;
}
}
mService.disconnect(device);
for (BluetoothDevice src : srcs) {
mService.disconnect(device);
}
}
Log.d(TAG,"PBAPClientProfile attempting to connect to " + device.getAddress());