diff options
author | Tyler Gunn <tgunn@google.com> | 2015-01-29 11:47:24 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2015-01-29 11:47:24 -0800 |
commit | 8a2b1199a6db0c6f2493e96e25ec1d89e3f62769 (patch) | |
tree | 4f634a0e7cf8932c874d7e8376b9a61ceaa938d6 /telecomm/java/android/telecom/Connection.java | |
parent | feabeb624361c234279a03c6dcdb6a53ee48eddc (diff) | |
download | frameworks_base-8a2b1199a6db0c6f2493e96e25ec1d89e3f62769.zip frameworks_base-8a2b1199a6db0c6f2493e96e25ec1d89e3f62769.tar.gz frameworks_base-8a2b1199a6db0c6f2493e96e25ec1d89e3f62769.tar.bz2 |
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: I3ba138cb546e3efdf89b29d6676d00257a5e00cd
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index a180f44..03fec01 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -260,6 +260,7 @@ public abstract class Connection implements IConferenceable { /** @hide */ public void onConferenceParticipantsChanged(Connection c, List<ConferenceParticipant> participants) {} + public void onConferenceStarted() {} } /** @hide */ @@ -1422,4 +1423,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(); + } + } } |