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

Commit 638f180c authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Fix issue where self-managed calls play ringtone.

If the default dialer doesn't handle ringtones, selfmanaged calls will
play the system ringtone.

Test: Manual
Bug: 36866764
Change-Id: I5392333005d30b422aadb37e2a7578597fcd9760
parent e42440cc
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -116,6 +116,11 @@ public class Ringer {
            return isRingerAudible;
        }

        if (foregroundCall.isSelfManaged()) {
            Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Self-managed");
            return false;
        }

        stopCallWaiting();

        if (!shouldRingForContact(foregroundCall.getContactUri())) {
@@ -161,6 +166,11 @@ public class Ringer {
            return;
        }

        if (call.isSelfManaged()) {
            Log.addEvent(call, LogUtils.Events.SKIP_RINGING, "Self-managed");
            return;
        }

        Log.v(this, "Playing call-waiting tone.");

        stopRinging();