Merge "Directly call from switch to work profile dialog" into tm-qpr-dev

This commit is contained in:
Ayush Sharma
2023-03-02 10:55:24 +00:00
committed by Android (Google) Code Review

View File

@@ -66,7 +66,7 @@ class SwitchToManagedProfileForCallActivity : AlertActivity(), DialogInterface.O
private fun switchToManagedProfile() { private fun switchToManagedProfile() {
try { try {
applicationContext.startActivityAsUser( applicationContext.startActivityAsUser(
Intent(Intent.ACTION_DIAL, phoneNumber), Intent(Intent.ACTION_CALL, phoneNumber),
ActivityOptions.makeOpenCrossProfileAppsAnimation().toBundle(), ActivityOptions.makeOpenCrossProfileAppsAnimation().toBundle(),
UserHandle.of(managedProfileUserId) UserHandle.of(managedProfileUserId)
) )