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

Commit 295e0b5c authored by Tyler Gunn's avatar Tyler Gunn Committed by Howard Harte
Browse files

Fixing conference merge where only one party is added to conference.

- Adding "onConferenceStarted" listener for Connections.
- This is necessary so that an ImsCall can report the fact that it has
went from being a single party call to a multiparty call.  This was not
previously necessary since the multiparty bit change would be detected
when one of the connections being merged changed state.  Since we now must
defer the establishment of the conference until all connections have been
merged, we need a means of detecting when the call becomes multiparty.

Bug: 18960042
Change-Id: If007e4d230071f198db726a67e4e640cd0d11fd0
parent de0075a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30037,6 +30037,7 @@ package android.telecom {
    method public final int getState();
    method public final android.telecom.StatusHints getStatusHints();
    method public final boolean isRingbackRequested();
    method protected void notifyConferenceStarted();
    method public void onAbort();
    method public void onAnswer();
    method public void onAudioStateChanged(android.telecom.AudioState);
+10 −0
Original line number Diff line number Diff line
@@ -342,6 +342,7 @@ public abstract class Connection implements IConferenceable {
        /** @hide */
        public void onConferenceParticipantsChanged(Connection c,
                List<ConferenceParticipant> participants) {}
        public void onConferenceStarted() {}
    }

    /** @hide */
@@ -1657,4 +1658,13 @@ public abstract class Connection implements IConferenceable {
            l.onConferenceParticipantsChanged(this, conferenceParticipants);
        }
    }

    /**
     * Notifies listeners that a conference call has been started.
     */
    protected void notifyConferenceStarted() {
        for (Listener l : mListeners) {
            l.onConferenceStarted();
        }
    }
}