Merge "Strip transition information from activityoptions when sent to app" into sc-v2-dev am: eeab60091c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999 Change-Id: I2996d813bc8a89c220e7c89efdd064d3c7ef3fdd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1441,6 +1441,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;
|
||||
|
||||
@@ -4884,8 +4884,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
||||
ActivityOptions takeOptions() {
|
||||
if (DEBUG_TRANSITION) Slog.i(TAG, "Taking options for " + this + " callers="
|
||||
+ Debug.getCallers(6));
|
||||
if (mPendingOptions == null) return null;
|
||||
final ActivityOptions opts = mPendingOptions;
|
||||
mPendingOptions = null;
|
||||
// Strip sensitive information from options before sending it to app.
|
||||
opts.setRemoteTransition(null);
|
||||
opts.setRemoteAnimationAdapter(null);
|
||||
return opts;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user