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

Commit 4d85d695 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Do not post notifications for logged self-managed connections

When a self-managed call is missed and the self-managed
PhoneAccount has specified that they want their call logged
in the call log, do not post a notification for the missed call.
Posting the missed call notification is up to the Self-Managed
ConnectionService.

Bug: 62999358
Test: Manual, run telecom unit tests
Change-Id: Ic62ef8aaf9164d10ac4d3ffbb3e06ee5b7474d34
parent 8e3d34e4
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -153,8 +153,8 @@ public final class CallLogManager extends CallsManagerListenerBase {
                        !isCallCanceled) &&
                !call.isExternalCall() &&
                (!call.isSelfManaged() ||
                call.isLoggedSelfManaged() &&
                        call.getHandoverState() != HandoverState.HANDOVER_FAILED)) {
                        (call.isLoggedSelfManaged() &&
                                call.getHandoverState() != HandoverState.HANDOVER_FAILED))) {
            int type;
            if (!call.isIncoming()) {
                type = Calls.OUTGOING_TYPE;
@@ -167,7 +167,10 @@ public final class CallLogManager extends CallsManagerListenerBase {
            } else {
                type = Calls.INCOMING_TYPE;
            }
            logCall(call, type, true /*showNotificationForMissedCall*/);
            // Always show the notification for managed calls. For self-managed calls, it is up to
            // the app to show the notification, so suppress the notification when logging the call.
            boolean showNotification = !call.isLoggedSelfManaged();
            logCall(call, type, showNotification);
        }
    }