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

Commit 4b9e5566 authored by Hall Liu's avatar Hall Liu
Browse files

Check for PROPERTY_IS_DOWNGRADED_CONFERENCE in addExistingConnection

If the property is set, create the new Call object as a conference.

Change-Id: I1e28fea1801a7ef6f3b7445f2f3ae4bb08c54c98
Fix: 29806833
parent b5776701
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2000,6 +2000,8 @@ public class CallsManager extends Call.ListenerBase
     * @return The new call.
     */
    Call createCallForExistingConnection(String callId, ParcelableConnection connection) {
        boolean isDowngradedConference = (connection.getConnectionProperties()
                & Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE) != 0;
        Call call = new Call(
                callId,
                mContext,
@@ -2015,7 +2017,7 @@ public class CallsManager extends Call.ListenerBase
                connection.getPhoneAccount(), /* targetPhoneAccountHandle */
                Call.CALL_DIRECTION_UNDEFINED /* callDirection */,
                false /* forceAttachToExistingConnection */,
                false /* isConference */,
                isDowngradedConference /* isConference */,
                connection.getConnectTimeMillis() /* connectTimeMillis */);

        call.initAnalytics();