Loading src/java/com/android/internal/telephony/imsphone/ImsPhone.java +6 −1 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ import android.os.ResultReceiver; import android.os.UserHandle; import android.preference.PreferenceManager; import android.sysprop.TelephonyProperties; import android.telecom.VideoProfile; import android.telephony.AccessNetworkConstants; import android.telephony.CarrierConfigManager; import android.telephony.NetworkRegistrationInfo; Loading Loading @@ -802,7 +803,11 @@ public class ImsPhone extends ImsPhoneBase { try { if (getRingingCall().getState() != ImsPhoneCall.State.IDLE) { if (DBG) logd("MmiCode 2: accept ringing call"); if (mFeatureFlags.answerAudioOnlyWhenAnsweringViaMmiCode()) { mCT.acceptCall(VideoProfile.STATE_AUDIO_ONLY); } else { mCT.acceptCall(ImsCallProfile.CALL_TYPE_VOICE); } } else if (getBackgroundCall().getState() == ImsPhoneCall.State.HOLDING) { // If there's an active ongoing call as well, hold it and the background one // should automatically unhold. Otherwise just unhold the background call. Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhone.java +6 −1 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ import android.os.ResultReceiver; import android.os.UserHandle; import android.preference.PreferenceManager; import android.sysprop.TelephonyProperties; import android.telecom.VideoProfile; import android.telephony.AccessNetworkConstants; import android.telephony.CarrierConfigManager; import android.telephony.NetworkRegistrationInfo; Loading Loading @@ -802,7 +803,11 @@ public class ImsPhone extends ImsPhoneBase { try { if (getRingingCall().getState() != ImsPhoneCall.State.IDLE) { if (DBG) logd("MmiCode 2: accept ringing call"); if (mFeatureFlags.answerAudioOnlyWhenAnsweringViaMmiCode()) { mCT.acceptCall(VideoProfile.STATE_AUDIO_ONLY); } else { mCT.acceptCall(ImsCallProfile.CALL_TYPE_VOICE); } } else if (getBackgroundCall().getState() == ImsPhoneCall.State.HOLDING) { // If there's an active ongoing call as well, hold it and the background one // should automatically unhold. Otherwise just unhold the background call. Loading