Merge "Ensure conference state is posted to Telecom for new conferences." into rvc-dev

This commit is contained in:
Tyler Gunn
2020-04-14 23:16:54 +00:00
committed by Android (Google) Code Review
2 changed files with 23 additions and 2 deletions

View File

@@ -2505,6 +2505,11 @@ public abstract class ConnectionService extends Service {
mAdapter.addConferenceCall(id, parcelableConference);
mAdapter.setVideoProvider(id, conference.getVideoProvider());
mAdapter.setVideoState(id, conference.getVideoState());
// In some instances a conference can start its life as a standalone call with just a
// single participant; ensure we signal to Telecom in this case.
if (!conference.isMultiparty()) {
mAdapter.setConferenceState(id, conference.isMultiparty());
}
// Go through any child calls and set the parent.
for (Connection connection : conference.getConnections()) {