add original primary ID field to parcel

This commit is contained in:
Ashley Hughes 2014-03-26 00:29:39 +00:00
parent b77e0504aa
commit 4923c9b8e3

View File

@ -41,6 +41,7 @@ public class SaveKeyringParcel implements Parcelable {
public String oldPassPhrase;
public boolean[] newKeys;
public ArrayList<PGPSecretKey> keys;
public String originalPrimaryID;
public SaveKeyringParcel() {}
@ -62,6 +63,7 @@ public class SaveKeyringParcel implements Parcelable {
oldPassPhrase = source.readString();
newKeys = source.createBooleanArray();
keys = PgpConversionHelper.BytesToPGPSecretKeyList(source.createByteArray());
originalPrimaryID = source.readString();
}
@Override
@ -82,6 +84,7 @@ public class SaveKeyringParcel implements Parcelable {
destination.writeString(oldPassPhrase);
destination.writeBooleanArray(newKeys);
destination.writeByteArray(PgpConversionHelper.PGPSecretKeyArrayListToBytes(keys));
destination.writeString(originalPrimaryID);
}
public static final Creator<SaveKeyringParcel> CREATOR = new Creator<SaveKeyringParcel>() {