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

Commit ffba6d8a authored by Ravi Paluri's avatar Ravi Paluri
Browse files

IMS-VT: Set notificationType for IncomingCall when InCallUi is not showing

Set notificationType for Incoming Call only when
InCallUi is not showing else we end up displaying HUN
even when there is a user input to accept Low Battery
MT Video call as Video.

Change-Id: Ic7d31a488bfa7bc53a436003e46c5305c730e0c1
CRs-Fixed: 1061081
parent edefa46c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -339,9 +339,12 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener,

        final boolean isVideoUpgradeRequest = call.getSessionModificationState()
                == Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST;
        final Call pendingAccountSelectionCall = CallList.getInstance()
                .getWaitingForAccountCall();
        final int notificationType;
        if (callState == Call.State.INCOMING || callState == Call.State.CALL_WAITING
                || isVideoUpgradeRequest) {
        if ((callState == Call.State.INCOMING || callState == Call.State.CALL_WAITING
                || isVideoUpgradeRequest) && (!InCallPresenter.getInstance().isShowingInCallUi()
                || pendingAccountSelectionCall != null)) {
            notificationType = NOTIFICATION_INCOMING_CALL;
        } else {
            notificationType = NOTIFICATION_IN_CALL;
@@ -388,8 +391,6 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener,
        // Set up the main intent to send the user to the in-call screen
        final PendingIntent inCallPendingIntent = createLaunchPendingIntent();
        builder.setContentIntent(inCallPendingIntent);
        final Call pendingAccountSelectionCall = CallList.getInstance()
                .getWaitingForAccountCall();

        // Set the intent as a full screen intent as well if a call is incoming
        if (notificationType == NOTIFICATION_INCOMING_CALL