Merge "Directly call from switch to work profile dialog" into tm-qpr-dev am: 1112655d12
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21521189 Change-Id: I83708a642ffe642e6bb778d15891b60abbd72962 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user