Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a5e31bf authored by Grant Menke's avatar Grant Menke
Browse files

Ensure PROPERTY_IS_TRANSACTIONAL is set for transactional calls.

Added support for PROPERTY_IS_TRANSACTIONAL in Telecom for use in VoIP actions. This CL sets the PROPERTY_IS_TRANSACTIONAL to true when a transactional call is parceled.

Test: manually using the transactional VOiP test app and added new CTS test in TransactionalApisTest
Bug: 296934278
Change-Id: Ie0cb710ce39eece5cea04e11ee7681e6ddad1540
parent 23a939e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -158,6 +158,10 @@ public class ParcelableCallUtils {
            properties |= android.telecom.Call.Details.PROPERTY_VOIP_AUDIO_MODE;
        }

        if (call.isTransactionalCall()) {
            properties |= android.telecom.Call.Details.PROPERTY_IS_TRANSACTIONAL;
        }

        // If this is a single-SIM device, the "default SIM" will always be the only SIM.
        boolean isDefaultSmsAccount = phoneAccountRegistrar != null &&
                phoneAccountRegistrar.isUserSelectedSmsPhoneAccount(call.getTargetPhoneAccount());