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

Commit 6bfedcb7 authored by Achim Thesmann's avatar Achim Thesmann Committed by Android (Google) Code Review
Browse files

Merge "Fix Unsafe Parcel Usage" into main

parents 33776132 27972057
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -78,7 +78,8 @@ public final class AmbientBacklightEvent implements Parcelable {

    private AmbientBacklightEvent(Parcel in) {
        mEventType = in.readInt();
        mMetadata = in.readParcelable(AmbientBacklightMetadata.class.getClassLoader());
        mMetadata = in.readParcelable(AmbientBacklightMetadata.class.getClassLoader(),
                AmbientBacklightMetadata.class);
    }

    /**
+2 −1
Original line number Diff line number Diff line
@@ -252,7 +252,8 @@ public final class PictureProfile implements Parcelable {
        mInputId = in.readString();
        mPackageName = in.readString();
        mParams = in.readPersistableBundle();
        mHandle = in.readParcelable(PictureProfileHandle.class.getClassLoader());
        mHandle = in.readParcelable(PictureProfileHandle.class.getClassLoader(),
                PictureProfileHandle.class);
    }

    @Override
+2 −1
Original line number Diff line number Diff line
@@ -122,7 +122,8 @@ public final class SoundProfile implements Parcelable {
        mInputId = in.readString();
        mPackageName = in.readString();
        mParams = in.readPersistableBundle();
        mHandle = in.readParcelable(SoundProfileHandle.class.getClassLoader());
        mHandle = in.readParcelable(SoundProfileHandle.class.getClassLoader(),
                SoundProfileHandle.class);
    }

    @Override