Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a018552 authored by Ravi Nagarajan's avatar Ravi Nagarajan Committed by Matthew Xie
Browse files

Reset priority on unbond

Change-Id: I8232c666bde26235ad527c96e5218fc1b3e7a1db
parent f24eedf2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
            }
+1 −0
Original line number Diff line number Diff line
@@ -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;
            }