use autovalue for PgpSignEncryptData class
This commit is contained in:
@@ -623,7 +623,7 @@ public class EncryptFilesFragment
|
||||
}
|
||||
|
||||
// fill values for this action
|
||||
PgpSignEncryptData data = new PgpSignEncryptData();
|
||||
PgpSignEncryptData.Builder data = PgpSignEncryptData.builder();
|
||||
|
||||
if (mUseCompression) {
|
||||
data.setCompressionAlgorithm(
|
||||
@@ -675,7 +675,7 @@ public class EncryptFilesFragment
|
||||
}
|
||||
|
||||
|
||||
SignEncryptParcel parcel = new SignEncryptParcel(data);
|
||||
SignEncryptParcel parcel = new SignEncryptParcel(data.build());
|
||||
parcel.addInputUris(mFilesAdapter.getAsArrayList());
|
||||
|
||||
return parcel;
|
||||
|
||||
@@ -233,7 +233,7 @@ public class EncryptTextFragment
|
||||
}
|
||||
|
||||
// fill values for this action
|
||||
PgpSignEncryptData data = new PgpSignEncryptData();
|
||||
PgpSignEncryptData.Builder data = PgpSignEncryptData.builder();
|
||||
|
||||
data.setCleartextSignature(true);
|
||||
|
||||
@@ -286,7 +286,7 @@ public class EncryptTextFragment
|
||||
data.setSymmetricPassphrase(passphrase);
|
||||
}
|
||||
|
||||
SignEncryptParcel parcel = new SignEncryptParcel(data);
|
||||
SignEncryptParcel parcel = new SignEncryptParcel(data.build());
|
||||
parcel.setBytes(mMessage.getBytes());
|
||||
|
||||
return parcel;
|
||||
|
||||
Reference in New Issue
Block a user