mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
actually use the compression settings ;), and give them better default values
This commit is contained in:
parent
b6ac47e46c
commit
f7eae9c7e2
@ -1329,7 +1329,7 @@ public class Apg {
|
||||
if (compression == Id.choice.compression.none) {
|
||||
bcpgOut = new BCPGOutputStream(encryptOut);
|
||||
} else {
|
||||
compressGen = new PGPCompressedDataGenerator(CompressionAlgorithmTags.ZLIB);
|
||||
compressGen = new PGPCompressedDataGenerator(compression);
|
||||
bcpgOut = new BCPGOutputStream(compressGen.open(encryptOut));
|
||||
}
|
||||
if (signatureKeyId != 0) {
|
||||
|
@ -417,7 +417,7 @@ public class BaseActivity extends Activity
|
||||
|
||||
public int getDefaultMessageCompression() {
|
||||
return mPreferences.getInt(Constants.pref.default_message_compression,
|
||||
CompressionAlgorithmTags.ZLIB);
|
||||
Id.choice.compression.zlib);
|
||||
}
|
||||
|
||||
public void setDefaultMessageCompression(int value) {
|
||||
@ -428,7 +428,7 @@ public class BaseActivity extends Activity
|
||||
|
||||
public int getDefaultFileCompression() {
|
||||
return mPreferences.getInt(Constants.pref.default_file_compression,
|
||||
CompressionAlgorithmTags.ZLIB);
|
||||
Id.choice.compression.none);
|
||||
}
|
||||
|
||||
public void setDefaultFileCompression(int value) {
|
||||
|
Loading…
Reference in New Issue
Block a user