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

Commit 7511c84d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 9e4bc373 75d827cb
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));