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

Commit 20738945 authored by Swaminatha Balaji's avatar Swaminatha Balaji Committed by Android (Google) Code Review
Browse files

Auto connect hf/a2dp

Change-Id: I7c1fb4e2614f65e6810f195814dcf0cad88aee21
parent a732ffd8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -337,7 +337,8 @@ public final class BluetoothA2dp implements BluetoothProfile {
        if (mService != null && isEnabled()
            && isValidDevice(device)) {
            if (priority != BluetoothProfile.PRIORITY_OFF &&
                priority != BluetoothProfile.PRIORITY_ON) {
                priority != BluetoothProfile.PRIORITY_ON &&
                priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
              return false;
            }
            try {
+2 −1
Original line number Diff line number Diff line
@@ -455,7 +455,8 @@ public final class BluetoothHeadset implements BluetoothProfile {
        if (mService != null && isEnabled() &&
            isValidDevice(device)) {
            if (priority != BluetoothProfile.PRIORITY_OFF &&
                priority != BluetoothProfile.PRIORITY_ON) {
                priority != BluetoothProfile.PRIORITY_ON &&
                priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
              return false;
            }
            try {