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

Commit e466ad4a 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

Change-Id: If5343c33e2b34e31e1683ea0335abff8880cab7b
parents 001a02ca 638f180c
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();