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

Commit ffba3e7a authored by Janis Danisevskis's avatar Janis Danisevskis
Browse files

WrappedApplicationKey: Remove superfluous branch in deserialization.

The metadata field is written unconditionally and will be represented at
least by a -1 if it is null.

Bug: 210655898
Test: N/A
Change-Id: Iad85dbec916a2d51523b81b594b66b9518811d27
parent b8ebf695
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -167,11 +167,8 @@ public final class WrappedApplicationKey implements Parcelable {
    protected WrappedApplicationKey(Parcel in) {
        mAlias = in.readString();
        mEncryptedKeyMaterial = in.createByteArray();
        // Check if there is still data to be read.
        if (in.dataAvail() > 0) {
        mMetadata = in.createByteArray();
    }
    }

    @Override
    public int describeContents() {