From 222e1766cbec9fc89832f73debdc3aef51310757 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Tue, 21 Feb 2023 16:38:12 +0000 Subject: [PATCH] Directly call from switch to work profile dialog Bug: 269593132 Test: Manual( With work profile telephony enabled 1. Tried to call a number from a personal profile dialer 2. Switch to work profile dialog gets launched 3. On clicking the "Switch to work profile" button, 4. [New behavior] call is placed directly using the work profile dialer instead of [Old behavior] work dialer gets launched with number auto filled on the dial pad and user needs to press the call button to make the call. ) Change-Id: I20fed35b8aff592a012679375ed026b2d0a33761 --- .../ui/activity/SwitchToManagedProfileForCallActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/telephony/ui/activity/SwitchToManagedProfileForCallActivity.kt b/packages/SystemUI/src/com/android/systemui/telephony/ui/activity/SwitchToManagedProfileForCallActivity.kt index e092f01d19f64..8e2b05cd95268 100644 --- a/packages/SystemUI/src/com/android/systemui/telephony/ui/activity/SwitchToManagedProfileForCallActivity.kt +++ b/packages/SystemUI/src/com/android/systemui/telephony/ui/activity/SwitchToManagedProfileForCallActivity.kt @@ -66,7 +66,7 @@ class SwitchToManagedProfileForCallActivity : AlertActivity(), DialogInterface.O private fun switchToManagedProfile() { try { applicationContext.startActivityAsUser( - Intent(Intent.ACTION_DIAL, phoneNumber), + Intent(Intent.ACTION_CALL, phoneNumber), ActivityOptions.makeOpenCrossProfileAppsAnimation().toBundle(), UserHandle.of(managedProfileUserId) )