Merge "Skip parceling destroyed buffer" into rvc-dev

This commit is contained in:
Winson Chung
2020-05-14 17:32:08 +00:00
committed by Android (Google) Code Review

View File

@@ -2231,7 +2231,8 @@ public class ActivityManager {
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(mId);
ComponentName.writeToParcel(mTopActivityComponent, dest);
dest.writeParcelable(mSnapshot, 0);
dest.writeParcelable(mSnapshot != null && !mSnapshot.isDestroyed() ? mSnapshot : null,
0);
dest.writeInt(mColorSpace.getId());
dest.writeInt(mOrientation);
dest.writeInt(mRotation);