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

Commit 00e95238 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Do not post notifications for logged self-managed connections" into...

Merge "Do not post notifications for logged self-managed connections" into oc-dr1-dev am: 3abf4826
am: 0d0a8ef0

Change-Id: I9633acd0f96b5f4e6d5e6e197e0527fae5fb09e6
parents 4fcbaffb 0d0a8ef0
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);
        }
    }