Minor fix in OpenPgpData: type is now also written to and read from parcel

This commit is contained in:
erbsenmann 2013-11-08 19:25:35 +01:00
parent 3235201cf3
commit afa7e80c91

View File

@ -99,6 +99,7 @@ public class OpenPgpData implements Parcelable {
}
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(type);
dest.writeString(string);
dest.writeInt(bytes.length);
dest.writeByteArray(bytes);
@ -109,6 +110,7 @@ public class OpenPgpData implements Parcelable {
public static final Creator<OpenPgpData> CREATOR = new Creator<OpenPgpData>() {
public OpenPgpData createFromParcel(final Parcel source) {
OpenPgpData vr = new OpenPgpData();
vr.type = source.readInt();
vr.string = source.readString();
vr.bytes = new byte[source.readInt()];
source.readByteArray(vr.bytes);