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

Commit 6a843086 authored by Suresh Koleti's avatar Suresh Koleti
Browse files

IMS-VT: Notify capability change to clients when reset

Notify to clients when there is a change in video
capability or reset the video capability so that
"Make video call" will be removed based on current
feature capability.

Test: Manual
Bug: 62778318
Change-Id: I13aad85cbdf7273b3a2322bdcaf5d22f681ec6a0
parent 12456b58
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3603,7 +3603,13 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {

    private void resetImsCapabilities() {
        log("Resetting Capabilities...");
        boolean tmpIsVideoCallEnabled = isVideoCallEnabled();
        mMmTelCapabilities = new MmTelFeature.MmTelCapabilities();

        boolean isVideoEnabled = isVideoCallEnabled();
        if (tmpIsVideoCallEnabled != isVideoEnabled) {
            mPhone.notifyForVideoCapabilityChanged(isVideoEnabled);
        }
    }

    /**