summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom/Conference.java
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-11-06 17:00:25 -0800
committerAndrew Lee <anwlee@google.com>2014-11-06 17:19:51 -0800
commit46f7f5dce42d645353a0f3eb0dbdd25b3a6c72fb (patch)
tree93f18fd170a3c1a39b1cd1122a44c2651798abf1 /telecomm/java/android/telecom/Conference.java
parent30e65842493adc71aff649f32a45b6a38e83dc2e (diff)
downloadframeworks_base-46f7f5dce42d645353a0f3eb0dbdd25b3a6c72fb.zip
frameworks_base-46f7f5dce42d645353a0f3eb0dbdd25b3a6c72fb.tar.gz
frameworks_base-46f7f5dce42d645353a0f3eb0dbdd25b3a6c72fb.tar.bz2
Replace onConferenceChanged with onConnectionAdded.
This change is motivated by a desire to be able to adjust the phone capabilities of a conference depending on its connections. Turns out Connection is not a good place to do this, because when the conference is set, this code is only fired if the connection service already contains the conference. Conference makes more sense to do this anyways, at the end of the day. + Add onConnectionAdded function to Conference.java. - Remove onConferenceChanged function from Connection.java. Bug: 18241753 Change-Id: Ib9212a8483a7a7b542618697399bbab8b2701b04
Diffstat (limited to 'telecomm/java/android/telecom/Conference.java')
-rw-r--r--telecomm/java/android/telecom/Conference.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Conference.java b/telecomm/java/android/telecom/Conference.java
index 6480a8a..32bdbe0 100644
--- a/telecomm/java/android/telecom/Conference.java
+++ b/telecomm/java/android/telecom/Conference.java
@@ -179,6 +179,13 @@ public abstract class Conference {
public void onAudioStateChanged(AudioState state) {}
/**
+ * Notifies this conference that a connection has been added to it.
+ *
+ * @param connection The newly added connection.
+ */
+ public void onConnectionAdded(Connection connection) {}
+
+ /**
* Sets state to be on hold.
*/
public final void setOnHold() {
@@ -238,6 +245,7 @@ public abstract class Conference {
if (connection != null && !mChildConnections.contains(connection)) {
if (connection.setConference(this)) {
mChildConnections.add(connection);
+ onConnectionAdded(connection);
for (Listener l : mListeners) {
l.onConnectionAdded(this, connection);
}