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

Commit 9552ca5d authored by Bruno Martins's avatar Bruno Martins
Browse files

Telecomm: Avoid NPE when invoking setAudioParameters

* This exception would occur when preferred SIM for calls was set to
  "Ask every time" and if dialog was dismissed before starting the call

Change-Id: Iee9968a7ad95fa16a085ecd7e765873904e0b88a
parent 6eea5e67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -478,7 +478,7 @@ final class CallAudioManager extends CallsManagerListenerBase
                Log.i(this, "Transition from IN_CALL -> RINGTONE. Resetting to NORMAL first.");
                mAudioManager.setMode(AudioManager.MODE_NORMAL);
            }
            if (call != null && setMsimAudioParams) {
            if (call != null && call.getTargetPhoneAccount() != null && setMsimAudioParams) {
                setAudioParameters(call, newMode);
            }
            mAudioManager.setMode(newMode);