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

Commit be64cbb4 authored by Kiran Kelageri's avatar Kiran Kelageri Committed by Bruno Martins
Browse files

Bluetooth-TWS: Disable outgoing connection to 2nd earbud



Disbaling outgoing connection to 2nd earbud and removed
vendor specific property.

 Conflicts:
	packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java

Change-Id: I912c3acd84f449b6f967d6ef2c7beaebca4ef05c
CRs-fixed: 2326015
Signed-off-by: default avatarVolodymyr Zhdanov <wight554@gmail.com>
parent 82f0609c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@ import android.os.Looper;
import android.os.Message;
import android.os.ParcelUuid;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.text.TextUtils;
import android.util.EventLog;
import android.util.Log;
@@ -60,6 +59,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
    private static final long MAX_HEARING_AIDS_DELAY_FOR_AUTO_CONNECT = 15000;
    private static final long MAX_HOGP_DELAY_FOR_AUTO_CONNECT = 30000;
    private static final long MAX_MEDIA_PROFILE_CONNECT_DELAY = 60000;
    private static final boolean mIsTwsConnectEnabled = false;

    private final Context mContext;
    private final BluetoothAdapter mLocalAdapter;
@@ -737,7 +737,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
        refresh();

        if (bondState == BluetoothDevice.BOND_BONDED) {
            if (SystemProperties.getBoolean("persist.vendor.btstack.connect.peer_earbud", false)) {
            if (mIsTwsConnectEnabled) {
                Log.d(TAG, "Initiating connection to" + mDevice);
                if (mDevice.isBondingInitiatedLocally() || mDevice.isTwsPlusDevice()) {
                    connect();