Implement EXTRA_ORIGINAL_FILENAME for API

This commit is contained in:
Dominik Schürmann 2014-08-11 23:57:11 +02:00
parent acf5b99434
commit ae5e75f4e1
2 changed files with 7 additions and 2 deletions

View File

@ -226,6 +226,10 @@ public class OpenPgpService extends RemoteService {
boolean sign) {
try {
boolean asciiArmor = data.getBooleanExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
String originalFilename = data.getStringExtra(OpenPgpApi.EXTRA_ORIGINAL_FILENAME);
if (originalFilename == null) {
originalFilename = "";
}
long[] keyIds;
if (data.hasExtra(OpenPgpApi.EXTRA_KEY_IDS)) {
@ -271,7 +275,8 @@ public class OpenPgpService extends RemoteService {
builder.setEnableAsciiArmorOutput(asciiArmor)
.setCompressionId(accSettings.getCompression())
.setSymmetricEncryptionAlgorithm(accSettings.getEncryptionAlgorithm())
.setEncryptionMasterKeyIds(keyIds);
.setEncryptionMasterKeyIds(keyIds)
.setOriginalFilename(originalFilename);
if (sign) {
String passphrase;

@ -1 +1 @@
Subproject commit 777d22d75da9bfecf0bcfe2088da3fef01b2259f
Subproject commit 940a1d8eebe297e6a94f417a24c0403f1d8d650f