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) { if (compression == Id.choice.compression.none) {
bcpgOut = new BCPGOutputStream(encryptOut); bcpgOut = new BCPGOutputStream(encryptOut);
} else { } else {
compressGen = new PGPCompressedDataGenerator(CompressionAlgorithmTags.ZLIB); compressGen = new PGPCompressedDataGenerator(compression);
bcpgOut = new BCPGOutputStream(compressGen.open(encryptOut)); bcpgOut = new BCPGOutputStream(compressGen.open(encryptOut));
} }
if (signatureKeyId != 0) { if (signatureKeyId != 0) {

View File

@ -417,7 +417,7 @@ public class BaseActivity extends Activity
public int getDefaultMessageCompression() { public int getDefaultMessageCompression() {
return mPreferences.getInt(Constants.pref.default_message_compression, return mPreferences.getInt(Constants.pref.default_message_compression,
CompressionAlgorithmTags.ZLIB); Id.choice.compression.zlib);
} }
public void setDefaultMessageCompression(int value) { public void setDefaultMessageCompression(int value) {
@ -428,7 +428,7 @@ public class BaseActivity extends Activity
public int getDefaultFileCompression() { public int getDefaultFileCompression() {
return mPreferences.getInt(Constants.pref.default_file_compression, return mPreferences.getInt(Constants.pref.default_file_compression,
CompressionAlgorithmTags.ZLIB); Id.choice.compression.none);
} }
public void setDefaultFileCompression(int value) { public void setDefaultFileCompression(int value) {