Reset priority on unbond

Change-Id: I8232c666bde26235ad527c96e5218fc1b3e7a1db
This commit is contained in:
Ravi Nagarajan
2012-06-29 19:18:07 +05:30
committed by Matthew Xie
parent c61eb2617d
commit 82e57fe174
2 changed files with 2 additions and 0 deletions

View File

@@ -338,6 +338,7 @@ public final class BluetoothA2dp implements BluetoothProfile {
&& isValidDevice(device)) {
if (priority != BluetoothProfile.PRIORITY_OFF &&
priority != BluetoothProfile.PRIORITY_ON &&
priority != BluetoothProfile.PRIORITY_UNDEFINED &&
priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
return false;
}

View File

@@ -456,6 +456,7 @@ public final class BluetoothHeadset implements BluetoothProfile {
isValidDevice(device)) {
if (priority != BluetoothProfile.PRIORITY_OFF &&
priority != BluetoothProfile.PRIORITY_ON &&
priority != BluetoothProfile.PRIORITY_UNDEFINED &&
priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
return false;
}