Merge "Strip transition information from activityoptions once it is read." into sc-v2-dev am: dc8ae7665a am: a824844cdf am: 7cb144249f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172 Change-Id: Ibded759578f05fe3dab6af5f0dc0e8579756e46d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1440,6 +1440,11 @@ public class ActivityOptions extends ComponentOptions {
|
||||
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;
|
||||
|
||||
@@ -4746,6 +4746,9 @@ 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() {
|
||||
|
||||
Reference in New Issue
Block a user