mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -05:00
Fix ascii armor in encrypt activity
This commit is contained in:
parent
009e8e9e39
commit
7c22fc843b
@ -209,6 +209,7 @@ public class EncryptFilesActivity extends EncryptActivity implements EncryptActi
|
|||||||
} else {
|
} else {
|
||||||
data.setCompressionId(CompressionAlgorithmTags.UNCOMPRESSED);
|
data.setCompressionId(CompressionAlgorithmTags.UNCOMPRESSED);
|
||||||
}
|
}
|
||||||
|
data.setEnableAsciiArmorOutput(mUseArmor);
|
||||||
data.setSymmetricEncryptionAlgorithm(PgpConstants.OpenKeychainSymmetricKeyAlgorithmTags.USE_PREFERRED);
|
data.setSymmetricEncryptionAlgorithm(PgpConstants.OpenKeychainSymmetricKeyAlgorithmTags.USE_PREFERRED);
|
||||||
data.setSignatureHashAlgorithm(PgpConstants.OpenKeychainSymmetricKeyAlgorithmTags.USE_PREFERRED);
|
data.setSignatureHashAlgorithm(PgpConstants.OpenKeychainSymmetricKeyAlgorithmTags.USE_PREFERRED);
|
||||||
|
|
||||||
@ -409,9 +410,7 @@ public class EncryptFilesActivity extends EncryptActivity implements EncryptActi
|
|||||||
uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
|
uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extras.containsKey(EXTRA_ASCII_ARMOR)) {
|
mUseArmor = extras.getBoolean(EXTRA_ASCII_ARMOR, false);
|
||||||
mUseArmor = extras.getBoolean(EXTRA_ASCII_ARMOR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// preselect keys given by intent
|
// preselect keys given by intent
|
||||||
mSigningKeyId = extras.getLong(EXTRA_SIGNATURE_KEY_ID);
|
mSigningKeyId = extras.getLong(EXTRA_SIGNATURE_KEY_ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user