Merge "WrappedApplicationKey: Remove superfluous branch in deserialization."

This commit is contained in:
Treehugger Robot
2022-03-25 00:16:25 +00:00
committed by Gerrit Code Review

View File

@@ -167,10 +167,7 @@ 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();
}
mMetadata = in.createByteArray();
}
@Override