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

Commit 47f8a077 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Fix issue where self-managed calls play ringtone. am: 638f180c

am: e466ad4a

Change-Id: Iaa2a8fe1eca627e3d6494876c1258243f15080eb
parents 5a7f4317 e466ad4a
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();