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

Commit 7c181fcf authored by Pranav Madapurmath's avatar Pranav Madapurmath Committed by Android (Google) Code Review
Browse files

Merge "Resolve NPE with AudioManager#getCommunicationDevice" into main

parents 2ca31925 85bd3be9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -759,7 +759,7 @@ public class BluetoothDeviceManager {
            Log.w(this, "setCommunicationDeviceForAddress: Device %s not found.", address);
            return false;
        }
        if (mAudioManager.getCommunicationDevice().equals(deviceInfo)) {
        if (deviceInfo.equals(mAudioManager.getCommunicationDevice())) {
            Log.i(this, "setCommunicationDeviceForAddress: Device %s already active.", address);
            return true;
        }