diff options
author | Yorke Lee <yorkelee@google.com> | 2014-09-17 03:29:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-17 03:29:12 +0000 |
commit | 1c4eb10cc1159d5e029f982a629c5262419fa5ce (patch) | |
tree | 6789052cbcf1f46bb1bed74e8acda7f218935186 /telecomm/java/android/telecom/ConnectionService.java | |
parent | ebc69cd19e3c4a40748410f6d509989e83829f1b (diff) | |
parent | a0d3ca9746143d669fe9384babb9e1b9fca33dcf (diff) | |
download | frameworks_base-1c4eb10cc1159d5e029f982a629c5262419fa5ce.zip frameworks_base-1c4eb10cc1159d5e029f982a629c5262419fa5ce.tar.gz frameworks_base-1c4eb10cc1159d5e029f982a629c5262419fa5ce.tar.bz2 |
Merge "Add missing methods to Conference object" into lmp-dev
Diffstat (limited to 'telecomm/java/android/telecom/ConnectionService.java')
-rw-r--r-- | telecomm/java/android/telecom/ConnectionService.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java index 8e4b17c..3e18bac 100644 --- a/telecomm/java/android/telecom/ConnectionService.java +++ b/telecomm/java/android/telecom/ConnectionService.java @@ -607,17 +607,29 @@ public abstract class ConnectionService extends Service { private void onAudioStateChanged(String callId, AudioState audioState) { Log.d(this, "onAudioStateChanged %s %s", callId, audioState); - findConnectionForAction(callId, "onAudioStateChanged").setAudioState(audioState); + if (mConnectionById.containsKey(callId)) { + findConnectionForAction(callId, "onAudioStateChanged").setAudioState(audioState); + } else { + findConferenceForAction(callId, "onAudioStateChanged").setAudioState(audioState); + } } private void playDtmfTone(String callId, char digit) { Log.d(this, "playDtmfTone %s %c", callId, digit); - findConnectionForAction(callId, "playDtmfTone").onPlayDtmfTone(digit); + if (mConnectionById.containsKey(callId)) { + findConnectionForAction(callId, "playDtmfTone").onPlayDtmfTone(digit); + } else { + findConferenceForAction(callId, "playDtmfTone").onPlayDtmfTone(digit); + } } private void stopDtmfTone(String callId) { Log.d(this, "stopDtmfTone %s", callId); - findConnectionForAction(callId, "stopDtmfTone").onStopDtmfTone(); + if (mConnectionById.containsKey(callId)) { + findConnectionForAction(callId, "stopDtmfTone").onStopDtmfTone(); + } else { + findConferenceForAction(callId, "stopDtmfTone").onStopDtmfTone(); + } } private void conference(String callId1, String callId2) { |