Skip to content

Commit 82e57fe

Browse files
Ravi NagarajanMatthew Xie
authored andcommitted
Reset priority on unbond
Change-Id: I8232c666bde26235ad527c96e5218fc1b3e7a1db
1 parent c61eb26 commit 82e57fe

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)