diff options
author | Ihab Awad <ihab@google.com> | 2014-10-01 14:31:01 -0700 |
---|---|---|
committer | Ihab Awad <ihab@google.com> | 2014-10-01 14:31:01 -0700 |
commit | 12a4df2b66fccbc1e4293e8f56217e1064b2e8ea (patch) | |
tree | 22c74f18cddcc93f92a6961c5527226a622bfbed /telecomm/java/android/telecom/ConnectionService.java | |
parent | 3867e4d0c08ad74ee16dfde70e81c77f09e0e0ff (diff) | |
parent | ead63f02006039655e3f2733ba27e19d158da432 (diff) | |
download | frameworks_base-12a4df2b66fccbc1e4293e8f56217e1064b2e8ea.zip frameworks_base-12a4df2b66fccbc1e4293e8f56217e1064b2e8ea.tar.gz frameworks_base-12a4df2b66fccbc1e4293e8f56217e1064b2e8ea.tar.bz2 |
resolved conflicts for merge of ead63f02 to lmp-mr1-dev
Change-Id: I20d5f9d8aae82f0cb6f0ebf2ac1cb0af05eb8c9b
Diffstat (limited to 'telecomm/java/android/telecom/ConnectionService.java')
-rw-r--r-- | telecomm/java/android/telecom/ConnectionService.java | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java index d41ac6a..ab9da08 100644 --- a/telecomm/java/android/telecom/ConnectionService.java +++ b/telecomm/java/android/telecom/ConnectionService.java @@ -357,6 +357,14 @@ public abstract class ConnectionService extends Service { } @Override + public void onConferenceableConnectionsChanged( + Conference conference, List<Connection> conferenceableConnections) { + mAdapter.setConferenceableConnections( + mIdByConference.get(conference), + createConnectionIdList(conferenceableConnections)); + } + + @Override public void onDestroyed(Conference conference) { removeConference(conference); } @@ -635,19 +643,25 @@ public abstract class ConnectionService extends Service { private void conference(String callId1, String callId2) { Log.d(this, "conference %s, %s", callId1, callId2); - Connection connection1 = findConnectionForAction(callId1, "conference"); - if (connection1 == getNullConnection()) { - Log.w(this, "Connection1 missing in conference request %s.", callId1); - return; - } - Connection connection2 = findConnectionForAction(callId2, "conference"); if (connection2 == getNullConnection()) { Log.w(this, "Connection2 missing in conference request %s.", callId2); return; } - onConference(connection1, connection2); + Connection connection1 = findConnectionForAction(callId1, "conference"); + if (connection1 == getNullConnection()) { + Conference conference1 = findConferenceForAction(callId1, "addConnection"); + if (conference1 == getNullConference()) { + Log.w(this, + "Connection1 or Conference1 missing in conference request %s.", + callId1); + } else { + conference1.onMerge(connection2); + } + } else { + onConference(connection1, connection2); + } } private void splitFromConference(String callId) { |