diff options
| author | 2022-02-03 10:59:08 +0000 | |
|---|---|---|
| committer | 2022-02-03 11:01:39 +0000 | |
| commit | 4f165c948e81b2df3f30004cf1c977c3989de13d (patch) | |
| tree | 967f0cf6dcb464d7d7b6a7abe3cc6f96d55d5239 | |
| parent | 499454759689e38bce250762d64f51ad20d525c3 (diff) | |
Removed calls to connect/disconnect LeAudio
Tag: #feature
Bug: 200202780
Test: manual
Change-Id: Ib4ce2776d1c1d1abee3b80f603294dc3af571440
| -rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/LeAudioProfile.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LeAudioProfile.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LeAudioProfile.java index 209507ac7088..eef2cd9a0ed1 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LeAudioProfile.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LeAudioProfile.java @@ -144,20 +144,20 @@ public class LeAudioProfile implements LocalBluetoothProfile { * @hide */ public boolean connect(BluetoothDevice device) { - if (mService == null) { - return false; - } - return mService.connect(device); + if (mService == null) { + return false; + } + return mService.setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); } /* * @hide */ public boolean disconnect(BluetoothDevice device) { - if (mService == null) { - return false; - } - return mService.disconnect(device); + if (mService == null) { + return false; + } + return mService.setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); } public int getConnectionStatus(BluetoothDevice device) { |