Revert "Strip transition information from activityoptions once it is read."

This reverts commit 0b3ad39abf.

Reason for revert: Broke NexusLauncherTests:MemoryTests

Change-Id: Ibc8e9f516054f017e9db2e5608cf6806531ab554
This commit is contained in:
Evan Rosky
2022-08-03 18:08:32 +00:00
parent 0b3ad39abf
commit d1b32da845
2 changed files with 0 additions and 8 deletions

View File

@@ -1352,11 +1352,6 @@ public class ActivityOptions {
return mRemoteTransition;
}
/** @hide */
public void setRemoteTransition(@Nullable RemoteTransition remoteTransition) {
mRemoteTransition = remoteTransition;
}
/** @hide */
public static ActivityOptions fromBundle(Bundle bOptions) {
return bOptions != null ? new ActivityOptions(bOptions) : null;

View File

@@ -4426,9 +4426,6 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
mPendingRemoteAnimation = options.getRemoteAnimationAdapter();
}
mPendingRemoteTransition = options.getRemoteTransition();
// Since options gets sent to client apps, remove transition information from it.
options.setRemoteTransition(null);
options.setRemoteAnimationAdapter(null);
}
void applyOptionsAnimation() {