Skip to content

Commit ada1f63

Browse files
Matthew XieAndroid (Google) Code Review
authored andcommitted
Merge "Reset priority on unbond" into jb-mr1-dev
2 parents 1103d00 + 82e57fe commit ada1f63

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/java/android/bluetooth/BluetoothA2dp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public boolean setPriority(BluetoothDevice device, int priority) {
338338
&& isValidDevice(device)) {
339339
if (priority != BluetoothProfile.PRIORITY_OFF &&
340340
priority != BluetoothProfile.PRIORITY_ON &&
341+
priority != BluetoothProfile.PRIORITY_UNDEFINED &&
341342
priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
342343
return false;
343344
}

core/java/android/bluetooth/BluetoothHeadset.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ public boolean setPriority(BluetoothDevice device, int priority) {
456456
isValidDevice(device)) {
457457
if (priority != BluetoothProfile.PRIORITY_OFF &&
458458
priority != BluetoothProfile.PRIORITY_ON &&
459+
priority != BluetoothProfile.PRIORITY_UNDEFINED &&
459460
priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
460461
return false;
461462
}

0 commit comments

Comments
 (0)