summaryrefslogtreecommitdiff
path: root/telecomm
diff options
context:
space:
mode:
authorMuhammed Siju <msiju@codeaurora.org>2021-04-16 17:45:45 +0000
committerMuhammed Siju <msiju@codeaurora.org>2021-04-16 17:45:45 +0000
commitb71ecb6a396f85f4b526ee2e6a003a1f811ef559 (patch)
treef12663dfdb08b34382fd472263f1629eedb5d1ad /telecomm
parent78efaecd7e08338eb8f662ea198c29ba86f1651e (diff)
parent3d24e82f45a62c27c1f27228aced6e2cb9afd49e (diff)
[automerger] IMS: Fix issue with answering call for some 3rd party apps am: 3d24e82f45
Change-Id: I69e7658cc70d6ccdc9aca92caa744c90ea6ba032
Diffstat (limited to 'telecomm')
-rwxr-xr-xtelecomm/java/android/telecom/ConnectionService.java24
1 files changed, 11 insertions, 13 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java
index b60f923d7bc7..c0b540e024bb 100755
--- a/telecomm/java/android/telecom/ConnectionService.java
+++ b/telecomm/java/android/telecom/ConnectionService.java
@@ -2215,25 +2215,23 @@ public abstract class ConnectionService extends Service {
findConnectionForAction(callId, "abort").onAbort();
}
- private void answerVideo(String callId, int videoState) {
+ /** {@hide} */
+ protected void answerVideo(String callId, int videoState) {
Log.i(this, "answerVideo %s", callId);
- doAnswer(callId, videoState);
+ if (mConnectionById.containsKey(callId)) {
+ findConnectionForAction(callId, "answer").onAnswer(videoState);
+ } else {
+ findConferenceForAction(callId, "answer").onAnswer(videoState);
+ }
}
- private void answer(String callId) {
+ /** {@hide} */
+ protected void answer(String callId) {
Log.i(this, "answer %s", callId);
- doAnswer(callId, VideoProfile.STATE_AUDIO_ONLY);
- }
-
- /**
- * Access is public because protected access is not allowed.
- * @hide
- */
- public void doAnswer(String callId, int videoState) {
if (mConnectionById.containsKey(callId)) {
- findConnectionForAction(callId, "answer").onAnswer(videoState);
+ findConnectionForAction(callId, "answer").onAnswer();
} else {
- findConferenceForAction(callId, "answer").onAnswer(videoState);
+ findConferenceForAction(callId, "answer").onAnswer();
}
}