Reset the priority on unbond

Change-Id: I67b68bd70b947177218e0b908b79ebb9de9f45a8
This commit is contained in:
Ravi Nagarajan
2012-06-29 19:24:16 +05:30
committed by Matthew Xie
parent b45e3c8fe9
commit c70f548355
7 changed files with 37 additions and 0 deletions

View File

@@ -151,6 +151,12 @@ final class A2dpProfile implements LocalBluetoothProfile {
}
}
public void setUnbonded(BluetoothDevice device)
{
if (mService == null) return;
mService.setPriority(device, BluetoothProfile.PRIORITY_UNDEFINED);
}
boolean isA2dpPlaying() {
if (mService == null) return false;
List<BluetoothDevice> sinks = mService.getConnectedDevices();