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

Commit 75d827cb authored by Pooja Jain's avatar Pooja Jain Committed by Gerrit - the friendly Code Review server
Browse files

IMS-VT: Modify conditional logic of showing upgrade video icon

Check for active/held call before checking for
capabilities to fix issue of upgrade video icon coming on
dialing emergency number in wcdma mode.

Change-Id: I4962bbc832c9b6526fb1de87498fc6fc7eb3e139
parent 5124ab46
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -499,11 +499,11 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
        final boolean showUpgradeToVideo =
                /* When useExt is true, show upgrade button for an active/held
                   call if the call has either voice or video capabilities */
                ((isCallActive || isCallOnHold) &&
                ((useExt && QtiCallUtils.hasVoiceOrVideoCapabilities(call)) ||
                /* When useCustomVideoUi is true, show upgrade button for an active/held
                   voice call only if the current call has video capabilities */
                (useCustomVideoUi && !isVideo && hasVideoCallCapabilities(call))
                && (isCallActive || isCallOnHold)) ||
                (useCustomVideoUi && !isVideo && hasVideoCallCapabilities(call)))) ||
                /* When useExt and custom UI are false, default to Google behaviour */
                (!isVideo && !useExt && !useCustomVideoUi && hasVideoCallCapabilities(call));