From 3c762267497364f9afe799c96761769bd46224aa Mon Sep 17 00:00:00 2001 From: kholoud mohamed Date: Fri, 29 Apr 2022 10:21:59 +0100 Subject: [PATCH] Don't show profile switching animation by default Stop showing the profile switching animation by default for CrossProfileApps#startActivity which accepts an intent. For some reason, it shows the wrong profile indicator and given the platform deadline we don't have time to investigate the issue. Bug: 229712074 Test: manual Change-Id: Ib533751cdce000b66935c14ed1932bf9ea7306fd --- .../com/android/server/pm/CrossProfileAppsServiceImpl.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/services/core/java/com/android/server/pm/CrossProfileAppsServiceImpl.java b/services/core/java/com/android/server/pm/CrossProfileAppsServiceImpl.java index 89f8be27096ad..daac7c04098ae 100644 --- a/services/core/java/com/android/server/pm/CrossProfileAppsServiceImpl.java +++ b/services/core/java/com/android/server/pm/CrossProfileAppsServiceImpl.java @@ -236,13 +236,6 @@ public class CrossProfileAppsServiceImpl extends ICrossProfileApps.Stub { verifyActivityCanHandleIntent(launchIntent, callingUid, userId); - // Always show the cross profile animation - if (options == null) { - options = ActivityOptions.makeOpenCrossProfileAppsAnimation().toBundle(); - } else { - options.putAll(ActivityOptions.makeOpenCrossProfileAppsAnimation().toBundle()); - } - mInjector.getActivityTaskManagerInternal() .startActivityAsUser( caller,