Merge "Strip transition information from activityoptions once it is read." into sc-v2-dev am: dc8ae7665a am: a824844cdf am: 906694922d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172 Change-Id: Ie65a150c24a11b286d4d5f8022daba52dc055b96 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1452,6 +1452,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;
|
||||
|
||||
@@ -4736,6 +4736,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