mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-01-12 05:58:07 -05:00
Reload preferences on call
refs r326
This commit is contained in:
parent
ed0df2803f
commit
2660c561a1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user