diff --git a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpData.java b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpData.java index 064df0f1e..6615c2146 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpData.java +++ b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpData.java @@ -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 CREATOR = new Creator() { 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); diff --git a/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpData.java b/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpData.java index 064df0f1e..6615c2146 100644 --- a/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpData.java +++ b/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpData.java @@ -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 CREATOR = new Creator() { 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);