diff options
| author | Ravi Nagarajan <nravi@broadcom.com> | 2012-06-29 19:18:07 +0530 |
|---|---|---|
| committer | Matthew Xie <mattx@google.com> | 2012-07-26 19:20:32 -0700 |
| commit | 82e57fe1741e225a65bc69004ae12cbbdfae5737 (patch) | |
| tree | 27c141dff0fac9e65f4560082e7456ba6adfd1f5 /core/java | |
| parent | c61eb2617df72f1e58d23e4c27897efedcfc0a09 (diff) | |
Reset priority on unbond
Change-Id: I8232c666bde26235ad527c96e5218fc1b3e7a1db
Diffstat (limited to 'core/java')
| -rwxr-xr-x | core/java/android/bluetooth/BluetoothA2dp.java | 1 | ||||
| -rwxr-xr-x | core/java/android/bluetooth/BluetoothHeadset.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothA2dp.java b/core/java/android/bluetooth/BluetoothA2dp.java index 74f634b19a58..1b415e5eb9b6 100755 --- a/core/java/android/bluetooth/BluetoothA2dp.java +++ b/core/java/android/bluetooth/BluetoothA2dp.java @@ -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; } diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java index 75dfe9dbb4cd..8e6ebafda50f 100755 --- a/core/java/android/bluetooth/BluetoothHeadset.java +++ b/core/java/android/bluetooth/BluetoothHeadset.java @@ -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; } |
