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
This commit is contained in:
kholoud mohamed
2022-04-29 10:21:59 +01:00
parent e5b570be58
commit 3c76226749

View File

@@ -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,