Reload preferences on call
refs r326
This commit is contained in:
@@ -21,8 +21,7 @@ public class ApgService extends Service {
|
|||||||
private final IApgService.Stub mBinder = new IApgService.Stub() {
|
private final IApgService.Stub mBinder = new IApgService.Stub() {
|
||||||
|
|
||||||
public String encrypt_with_passphrase(String msg, String passphrase) {
|
public String encrypt_with_passphrase(String msg, String passphrase) {
|
||||||
Preferences mPreferences = Preferences
|
Preferences mPreferences = Preferences.getPreferences(getBaseContext(), true);
|
||||||
.getPreferences(getApplicationContext());
|
|
||||||
InputStream inStream = new ByteArrayInputStream(msg.getBytes());
|
InputStream inStream = new ByteArrayInputStream(msg.getBytes());
|
||||||
InputData in = new InputData(inStream, 9999);
|
InputData in = new InputData(inStream, 9999);
|
||||||
OutputStream out = new ByteArrayOutputStream();
|
OutputStream out = new ByteArrayOutputStream();
|
||||||
@@ -41,7 +40,8 @@ public class ApgService extends Service {
|
|||||||
null, // progress
|
null, // progress
|
||||||
mPreferences.getDefaultEncryptionAlgorithm(),
|
mPreferences.getDefaultEncryptionAlgorithm(),
|
||||||
mPreferences.getDefaultHashAlgorithm(),
|
mPreferences.getDefaultHashAlgorithm(),
|
||||||
Id.choice.compression.none, false, // mPreferences.getForceV3Signatures(),
|
Id.choice.compression.none, // compression
|
||||||
|
false, // mPreferences.getForceV3Signatures(),
|
||||||
passphrase // passPhrase
|
passphrase // passPhrase
|
||||||
);
|
);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user