actually use the compression settings ;), and give them better default values

This commit is contained in:
Thialfihar 2010-05-19 14:38:06 +00:00
parent b6ac47e46c
commit f7eae9c7e2
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {