Add the missing call to write mInputToken in SurfacePackage to parcel

ag/12396996 introduces mInputToken, but it's only added to parcel
reading. It has thus caused a bug (parcel reading misalignment) in
the Wallpaper app as in our preview feature we passes a
SurfacePackage over from Launcher.

Test: manual
Fixes: 176248059
Change-Id: Ife46d6d67991964d63513c946318cffbaf4ffae9
This commit is contained in:
Tracy Zhou
2020-12-28 17:29:20 -08:00
parent 9ffdeccec1
commit 2a4594ec5e

View File

@@ -115,6 +115,7 @@ public class SurfaceControlViewHost {
public void writeToParcel(@NonNull Parcel out, int flags) {
mSurfaceControl.writeToParcel(out, flags);
out.writeStrongBinder(mAccessibilityEmbeddedConnection.asBinder());
out.writeStrongBinder(mInputToken);
}
/**