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

Commit 57db6988 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

DO NOT MERGE Propagate CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO capability.

Propagate the connection capability through to a call capability.

Bug: 22728624
Change-Id: I2de63ba09d91f87e6d3f3083be070ec841abac0b
parent 611efc5f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -772,7 +772,10 @@ public final class InCallController extends CallsManagerListenerBase {
        android.telecom.Call.Details.CAPABILITY_CAN_PAUSE_VIDEO,

        Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION,
        android.telecom.Call.Details.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION
        android.telecom.Call.Details.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION,

        Connection.CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO,
        android.telecom.Call.Details.CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO
    };

    private static int convertConnectionToCallCapabilities(int connectionCapabilities) {
@@ -796,7 +799,7 @@ public final class InCallController extends CallsManagerListenerBase {
        android.telecom.Call.Details.PROPERTY_GENERIC_CONFERENCE,

        Connection.CAPABILITY_SHOW_CALLBACK_NUMBER,
        android.telecom.Call.Details.PROPERTY_EMERGENCY_CALLBACK_MODE,
        android.telecom.Call.Details.PROPERTY_EMERGENCY_CALLBACK_MODE
    };

    private static int convertConnectionToCallProperties(int connectionCapabilities) {