diff options
| -rw-r--r-- | src/org/thialfihar/android/apg/ApgService.java | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/thialfihar/android/apg/ApgService.java b/src/org/thialfihar/android/apg/ApgService.java index 6110fe7cd..9cdc5099d 100644 --- a/src/org/thialfihar/android/apg/ApgService.java +++ b/src/org/thialfihar/android/apg/ApgService.java @@ -21,8 +21,7 @@ public class ApgService extends Service {      private final IApgService.Stub mBinder = new IApgService.Stub() {          public String encrypt_with_passphrase(String msg, String passphrase) { -            Preferences mPreferences = Preferences -                    .getPreferences(getApplicationContext()); +            Preferences mPreferences = Preferences.getPreferences(getBaseContext(), true);              InputStream inStream = new ByteArrayInputStream(msg.getBytes());              InputData in = new InputData(inStream, 9999);              OutputStream out = new ByteArrayOutputStream(); @@ -41,7 +40,8 @@ public class ApgService extends Service {                          null, // progress                          mPreferences.getDefaultEncryptionAlgorithm(),                          mPreferences.getDefaultHashAlgorithm(), -                        Id.choice.compression.none, false, // mPreferences.getForceV3Signatures(), +                        Id.choice.compression.none, // compression +                        false, // mPreferences.getForceV3Signatures(),                          passphrase // passPhrase                          );              } catch (Exception e) {  | 
