Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a98c1a63 authored by Joe Antonetti's avatar Joe Antonetti
Browse files

[Handoff][1/N] Fix Parceling of App Icon

Actually parcel the app icon properly - the previous approach didn't encode the class name in the parcel, so it couldn't be marshalled

Test: Manual testing
Bug: 400970610
Flag: android.companion.enable_task_continuity
Change-Id: Icc437c022d0063063a0f31aa8c96531ce0cdc714
parent 6286e371
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public final class RemoteTask implements Parcelable {
        mSourceDeviceName = in.readString();
        mLastUsedTimestampMillis = in.readLong();
        if (in.readInt() != 0) {
            mIcon = in.readParcelable(Icon.class.getClassLoader(), Icon.class);
            mIcon = in.readParcelable(Icon.class.getClassLoader(), android.graphics.drawable.Icon.class);
        } else {
            mIcon = null;
        }
@@ -186,7 +186,7 @@ public final class RemoteTask implements Parcelable {
        dest.writeLong(mLastUsedTimestampMillis);
        if (mIcon != null) {
            dest.writeInt(1);
            mIcon.writeToParcel(dest, flags);
            dest.writeParcelable(mIcon, flags);
        } else {
            dest.writeInt(0);
        }