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

Commit 0becdb3c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix crash in BluetoothDeviceManager" into tm-qpr-dev

parents a1797f2b 5bf39fd0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -434,8 +434,9 @@ public class BluetoothDeviceManager {
            Log.i(this, "clearLeAudioCommunicationDevice: mAudioManager is null");
            return;
        }
        if (mAudioManager.getCommunicationDevice() != null
                && mAudioManager.getCommunicationDevice().getType()

        AudioDeviceInfo audioDeviceInfo = mAudioManager.getCommunicationDevice();
        if (audioDeviceInfo != null && audioDeviceInfo.getType()
                == AudioDeviceInfo.TYPE_BLE_HEADSET) {
            mAudioManager.clearCommunicationDevice();
        }