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

Commit ea0a4af9 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Ensure ConnectionService death triggers disconnect tone.

When calls disconnect due to CS death, we were not setting the disconnect
tone properly.

Test: Manual using telecom test app.
Bug: 79585690
Change-Id: I25077db8942f0f599f3e064cc786c56955c18b04
parent 4b857f25
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.media.AudioSystem;
import android.media.ToneGenerator;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
@@ -2041,7 +2042,8 @@ public class CallsManager extends Call.ListenerBase
                if (call.getConnectionService() == service) {
                    if (call.getState() != CallState.DISCONNECTED) {
                        markCallAsDisconnected(call, new DisconnectCause(DisconnectCause.ERROR,
                                "CS_DEATH"));
                                null /* message */, null /* description */, "CS_DEATH",
                                ToneGenerator.TONE_PROP_PROMPT));
                    }
                    markCallAsRemoved(call);
                }