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

Commit eb1fff10 authored by Hall Liu's avatar Hall Liu
Browse files

Unset conference state when dng_cnf removed

When PROPERTY_IS_DOWNGRADED_CONFERENCE is removed from a call, mark the
call as no-longer-a-conference.

Bug: 153530054
Test: manual
Change-Id: I02d89213189282449f5dbca0b94e4d988f735c4a
parent 83ade723
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1925,6 +1925,16 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
                }
            }

            boolean wasDowngradedConference =
                    (previousProperties & Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE) != 0;
            boolean isDowngradedConference =
                    (connectionProperties & Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE) != 0;
            if (wasDowngradedConference && !isDowngradedConference) {
                Log.i(this, "DOWNGRADED_CONFERENCE property removed; setting"
                        + " conference state to false");
                setConferenceState(false);
            }

            mAnalytics.addCallProperties(mConnectionProperties);

            int xorProps = previousProperties ^ mConnectionProperties;