mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-17 07:30:14 -05:00
a method, if not the best one, for each property
This commit is contained in:
parent
d6b0975f9b
commit
8662ca2928
@ -53,12 +53,16 @@ public class SaveKeyringParcel implements Parcelable {
|
|||||||
deletedKeys = PgpConversionHelper.BytesToPGPSecretKeyList(source.createByteArray());
|
deletedKeys = PgpConversionHelper.BytesToPGPSecretKeyList(source.createByteArray());
|
||||||
keysExpiryDates = (ArrayList<GregorianCalendar>)source.readSerializable();
|
keysExpiryDates = (ArrayList<GregorianCalendar>)source.readSerializable();
|
||||||
keysUsages = source.readArrayList(Integer.class.getClassLoader());
|
keysUsages = source.readArrayList(Integer.class.getClassLoader());
|
||||||
|
newPassPhrase = source.readString();
|
||||||
|
oldPassPhrase = source.readString();
|
||||||
|
source.readBooleanArray(newKeys);
|
||||||
|
keys = PgpConversionHelper.BytesToPGPSecretKeyList(source.createByteArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(Parcel destination, int flags)
|
public void writeToParcel(Parcel destination, int flags)
|
||||||
{
|
{
|
||||||
destination.writeSerializable(userIDs);
|
destination.writeSerializable(userIDs); //might not be the best method to store.
|
||||||
destination.writeSerializable(originalIDs);
|
destination.writeSerializable(originalIDs);
|
||||||
destination.writeSerializable(deletedIDs);
|
destination.writeSerializable(deletedIDs);
|
||||||
destination.writeByte((byte) (primaryIDChanged ? 1 : 0));
|
destination.writeByte((byte) (primaryIDChanged ? 1 : 0));
|
||||||
@ -69,7 +73,7 @@ public class SaveKeyringParcel implements Parcelable {
|
|||||||
destination.writeString(newPassPhrase);
|
destination.writeString(newPassPhrase);
|
||||||
destination.writeString(oldPassPhrase);
|
destination.writeString(oldPassPhrase);
|
||||||
destination.writeBooleanArray(newKeys);
|
destination.writeBooleanArray(newKeys);
|
||||||
destination.writeByteArray();
|
destination.writeByteArray(PgpConversionHelper.PGPSecretKeyArrayListToBytes(keys));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final Creator<SaveKeyringParcel> CREATOR = new Creator<SaveKeyringParcel>() {
|
public static final Creator<SaveKeyringParcel> CREATOR = new Creator<SaveKeyringParcel>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user