Merge "Reset priority on unbond" into jb-mr1-dev

This commit is contained in:
Matthew Xie
2012-07-26 21:15:24 -07:00
committed by Android (Google) Code Review
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;
}