mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
add original primary ID field to parcel
This commit is contained in:
parent
b77e0504aa
commit
4923c9b8e3
@ -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>() {
|
||||
|
Loading…
Reference in New Issue
Block a user