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

Commit 961bc806 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Correct stream type for BLE input device

Correct the stream type of an active BLE input device
as STREAM_DEFAULT.

Bug: 230556991
Test: Switching BLE -> Phone -> BLE to check if Blutooth volume
is recovered (A2DP is tested as well to ensure no regression)

Change-Id: I0dc289d9b670133928513aa5e5c1edd240351aef
parent ba95ddf6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1284,8 +1284,11 @@ import java.util.concurrent.atomic.AtomicBoolean;
                    break;
                case MSG_L_SET_BT_ACTIVE_DEVICE:
                    synchronized (mDeviceStateLock) {
                        mDeviceInventory.onSetBtActiveDevice((BtDeviceInfo) msg.obj,
                                mAudioService.getBluetoothContextualVolumeStream());
                        BtDeviceInfo btInfo = (BtDeviceInfo) msg.obj;
                        mDeviceInventory.onSetBtActiveDevice(btInfo,
                                (btInfo.mProfile != BluetoothProfile.LE_AUDIO || btInfo.mIsLeOutput)
                                        ? mAudioService.getBluetoothContextualVolumeStream()
                                        : AudioSystem.STREAM_DEFAULT);
                    }
                    break;
                case MSG_BT_HEADSET_CNCT_FAILED: