Loading android/app/src/com/android/bluetooth/btservice/PhonePolicy.java +4 −3 Original line number Diff line number Diff line Loading @@ -387,9 +387,10 @@ class PhonePolicy { switch (profileId) { case BluetoothProfile.HEADSET: HeadsetService hsService = mFactory.getHeadsetService(); List<BluetoothDevice> deviceList = hsService.getConnectedDevices(); if ((hsService != null) && (BluetoothProfile.PRIORITY_AUTO_CONNECT if ((hsService != null) && (BluetoothProfile.PRIORITY_AUTO_CONNECT != hsService.getPriority(device))) { List<BluetoothDevice> deviceList = hsService.getConnectedDevices(); adjustOtherHeadsetPriorities(hsService, deviceList); hsService.setPriority(device, BluetoothProfile.PRIORITY_AUTO_CONNECT); } Loading Loading
android/app/src/com/android/bluetooth/btservice/PhonePolicy.java +4 −3 Original line number Diff line number Diff line Loading @@ -387,9 +387,10 @@ class PhonePolicy { switch (profileId) { case BluetoothProfile.HEADSET: HeadsetService hsService = mFactory.getHeadsetService(); List<BluetoothDevice> deviceList = hsService.getConnectedDevices(); if ((hsService != null) && (BluetoothProfile.PRIORITY_AUTO_CONNECT if ((hsService != null) && (BluetoothProfile.PRIORITY_AUTO_CONNECT != hsService.getPriority(device))) { List<BluetoothDevice> deviceList = hsService.getConnectedDevices(); adjustOtherHeadsetPriorities(hsService, deviceList); hsService.setPriority(device, BluetoothProfile.PRIORITY_AUTO_CONNECT); } Loading