Merge "Skip parceling destroyed buffer" into rvc-dev am: b159f28fce

Change-Id: I7f8b310b4916880d9329bdb5b55c0d50c1091e77
This commit is contained in:
Winson Chung
2020-05-14 17:37:24 +00:00
committed by Automerger Merge Worker

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);