diff options
author | 2025-03-18 23:38:16 -0700 | |
---|---|---|
committer | 2025-03-19 18:09:22 -0700 | |
commit | 81e1ea8c685dbdc51a04e53f5880dfc93b725846 (patch) | |
tree | 95d8c1ce3b14044c5ecab3a774bc077f7db0a099 /src | |
parent | acbd1ee4f25512cf2b0dd8adb099590bcd034fe8 (diff) |
Revert "Fix video Call goes on hold instead of terminating when accepting 2nd video call as audio only"
This reverts commit acbd1ee4f25512cf2b0dd8adb099590bcd034fe8.
Reason for revert: <Requirement is incorrect>
https://b.corp.google.com/issues/397821412#comment10
Live network verification : b/404768831
Change-Id: Ie01aa3252d53a6c65e5d1155d8158a6464aad9a6
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java b/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java index e95433c2ee..4f9b69d7d4 100644 --- a/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +++ b/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java @@ -311,11 +311,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { // activeCall could be null if the foreground call is in a disconnected // state. If either of the calls is null there is no need to check if // one will be disconnected on answer. - // Use VideoProfile.STATE_BIDIRECTIONAL to not affect existing - // implementation. Video state of user response is handled in acceptCall(). boolean answeringWillDisconnect = - shouldDisconnectActiveCallOnAnswer(activeCall, imsCall, - VideoProfile.STATE_BIDIRECTIONAL); + shouldDisconnectActiveCallOnAnswer(activeCall, imsCall); conn.setActiveCallDisconnectedOnAnswer(answeringWillDisconnect); } } @@ -2218,7 +2215,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { ImsCall ringingCall = mRingingCall.getImsCall(); if (mForegroundCall.hasConnections() && mRingingCall.hasConnections()) { answeringWillDisconnect = - shouldDisconnectActiveCallOnAnswer(activeCall, ringingCall, videoState); + shouldDisconnectActiveCallOnAnswer(activeCall, ringingCall); } // Cache video state for pending MT call. @@ -5502,13 +5499,11 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { * * @param activeCall The active call. * @param incomingCall The incoming call. - * @param incomingCallVideoState The media type of incoming call acceptance. - * {@link VideoProfile.VideoState} * @return {@code true} if answering the incoming call will cause the active call to be * disconnected, {@code false} otherwise. */ private boolean shouldDisconnectActiveCallOnAnswer(ImsCall activeCall, - ImsCall incomingCall, int incomingCallVideoState) { + ImsCall incomingCall) { if (activeCall == null || incomingCall == null) { return false; @@ -5523,14 +5518,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { boolean isActiveCallOnWifi = activeCall.isWifiCall(); boolean isVoWifiEnabled = mImsManager.isWfcEnabledByPlatform() && mImsManager.isWfcEnabledByUser(); - boolean isIncomingCallAudio = true; - if (!mFeatureFlags.terminateActiveVideoCallWhenAcceptingSecondVideoCallAsAudioOnly()) { - isIncomingCallAudio = !incomingCall.isVideoCall(); - } else { - isIncomingCallAudio = !incomingCall.isVideoCall() - || incomingCallVideoState == VideoProfile.STATE_AUDIO_ONLY; - } - + boolean isIncomingCallAudio = !incomingCall.isVideoCall(); log("shouldDisconnectActiveCallOnAnswer : isActiveCallVideo=" + isActiveCallVideo + " isActiveCallOnWifi=" + isActiveCallOnWifi + " isIncomingCallAudio=" + isIncomingCallAudio + " isVowifiEnabled=" + isVoWifiEnabled); |