Loading src/com/android/server/telecom/CallsManager.java +9 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.telecom.PhoneCapabilities; import android.telecom.TelecomManager; import android.telephony.TelephonyManager; import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.TelephonyProperties; import com.android.internal.util.IndentingPrintWriter; Loading Loading @@ -649,12 +650,19 @@ public final class CallsManager extends Call.ListenerBase { call.answer(videoState); if (VideoProfile.VideoState.isVideo(videoState) && !mWiredHeadsetManager.isPluggedIn() && !mCallAudioManager.isBluetoothDeviceAvailable()) { !mCallAudioManager.isBluetoothDeviceAvailable() && isSpeakerEnabledForVideoCalls()) { call.setStartWithSpeakerphoneOn(true); } } } private static boolean isSpeakerEnabledForVideoCalls() { return (SystemProperties.getInt(TelephonyProperties.PROPERTY_IMS_AUDIO_OUTPUT, PhoneConstants.IMS_AUDIO_OUTPUT_DEFAULT) == PhoneConstants.IMS_AUDIO_OUTPUT_ENABLE_SPEAKER); } /** * Instructs Telecomm to deflect the specified call. Intended to be invoked by the in-call * app through {@link InCallAdapter} after Telecomm notifies it of an incoming call followed by Loading Loading
src/com/android/server/telecom/CallsManager.java +9 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.telecom.PhoneCapabilities; import android.telecom.TelecomManager; import android.telephony.TelephonyManager; import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.TelephonyProperties; import com.android.internal.util.IndentingPrintWriter; Loading Loading @@ -649,12 +650,19 @@ public final class CallsManager extends Call.ListenerBase { call.answer(videoState); if (VideoProfile.VideoState.isVideo(videoState) && !mWiredHeadsetManager.isPluggedIn() && !mCallAudioManager.isBluetoothDeviceAvailable()) { !mCallAudioManager.isBluetoothDeviceAvailable() && isSpeakerEnabledForVideoCalls()) { call.setStartWithSpeakerphoneOn(true); } } } private static boolean isSpeakerEnabledForVideoCalls() { return (SystemProperties.getInt(TelephonyProperties.PROPERTY_IMS_AUDIO_OUTPUT, PhoneConstants.IMS_AUDIO_OUTPUT_DEFAULT) == PhoneConstants.IMS_AUDIO_OUTPUT_ENABLE_SPEAKER); } /** * Instructs Telecomm to deflect the specified call. Intended to be invoked by the in-call * app through {@link InCallAdapter} after Telecomm notifies it of an incoming call followed by Loading