diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml
index 5bb4dc2ba..e43d5f3f3 100644
--- a/res/values-de/strings.xml
+++ b/res/values-de/strings.xml
@@ -42,6 +42,7 @@
User IDs
Keys
+ General
Defaults
@@ -92,6 +93,9 @@
Hash Algorithm
Public Key
Pass Phrase
+ Pass Phrase Cache
+ Message Compression
+ File Compression
Select
1 Selected
@@ -108,9 +112,16 @@
not valid
+ None
Sign only
Encrypt only
Sign and Encrypt
+ 15 secs
+ 1 min
+ 3 mins
+ 5 mins
+ 10 mins
+ until quit
DSA
ElGamal
@@ -150,7 +161,7 @@
Please specify which file to encrypt to.\nWARNING! File will be overwritten if it exists.
Please specify which file to decrypt to.\nWARNING! File will be overwritten if it exists.
Specify the Google Mail account you want to add.
- Please specify which file to import from.
+ Please specify which file to import keys from. (.asc or .gpg)
Please specify which file to export to.\nWARNING! File will be overwritten if it exists.
Please specify which file to export to.\nWARNING! You are about to export SECRET keys.\nWARNING! File will be overwritten if it exists.
Do you really want to delete the key '%s'?\nYou can't undo this!
diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml
index 5bb4dc2ba..e43d5f3f3 100644
--- a/res/values-ko/strings.xml
+++ b/res/values-ko/strings.xml
@@ -42,6 +42,7 @@
User IDs
Keys
+ General
Defaults
@@ -92,6 +93,9 @@
Hash Algorithm
Public Key
Pass Phrase
+ Pass Phrase Cache
+ Message Compression
+ File Compression
Select
1 Selected
@@ -108,9 +112,16 @@
not valid
+ None
Sign only
Encrypt only
Sign and Encrypt
+ 15 secs
+ 1 min
+ 3 mins
+ 5 mins
+ 10 mins
+ until quit
DSA
ElGamal
@@ -150,7 +161,7 @@
Please specify which file to encrypt to.\nWARNING! File will be overwritten if it exists.
Please specify which file to decrypt to.\nWARNING! File will be overwritten if it exists.
Specify the Google Mail account you want to add.
- Please specify which file to import from.
+ Please specify which file to import keys from. (.asc or .gpg)
Please specify which file to export to.\nWARNING! File will be overwritten if it exists.
Please specify which file to export to.\nWARNING! You are about to export SECRET keys.\nWARNING! File will be overwritten if it exists.
Do you really want to delete the key '%s'?\nYou can't undo this!
diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml
index 5bb4dc2ba..e43d5f3f3 100644
--- a/res/values-ru/strings.xml
+++ b/res/values-ru/strings.xml
@@ -42,6 +42,7 @@
User IDs
Keys
+ General
Defaults
@@ -92,6 +93,9 @@
Hash Algorithm
Public Key
Pass Phrase
+ Pass Phrase Cache
+ Message Compression
+ File Compression
Select
1 Selected
@@ -108,9 +112,16 @@
not valid
+ None
Sign only
Encrypt only
Sign and Encrypt
+ 15 secs
+ 1 min
+ 3 mins
+ 5 mins
+ 10 mins
+ until quit
DSA
ElGamal
@@ -150,7 +161,7 @@
Please specify which file to encrypt to.\nWARNING! File will be overwritten if it exists.
Please specify which file to decrypt to.\nWARNING! File will be overwritten if it exists.
Specify the Google Mail account you want to add.
- Please specify which file to import from.
+ Please specify which file to import keys from. (.asc or .gpg)
Please specify which file to export to.\nWARNING! File will be overwritten if it exists.
Please specify which file to export to.\nWARNING! You are about to export SECRET keys.\nWARNING! File will be overwritten if it exists.
Do you really want to delete the key '%s'?\nYou can't undo this!
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 856ed0c4e..e43d5f3f3 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -161,7 +161,7 @@
Please specify which file to encrypt to.\nWARNING! File will be overwritten if it exists.
Please specify which file to decrypt to.\nWARNING! File will be overwritten if it exists.
Specify the Google Mail account you want to add.
- Please specify which file to import from.
+ Please specify which file to import keys from. (.asc or .gpg)
Please specify which file to export to.\nWARNING! File will be overwritten if it exists.
Please specify which file to export to.\nWARNING! You are about to export SECRET keys.\nWARNING! File will be overwritten if it exists.
Do you really want to delete the key '%s'?\nYou can't undo this!
diff --git a/src/org/thialfihar/android/apg/EditKeyActivity.java b/src/org/thialfihar/android/apg/EditKeyActivity.java
index b1e37e8a1..9bd6d3f36 100644
--- a/src/org/thialfihar/android/apg/EditKeyActivity.java
+++ b/src/org/thialfihar/android/apg/EditKeyActivity.java
@@ -115,7 +115,7 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
Toast.makeText(this, "Warning: Key editing is still kind of beta.", Toast.LENGTH_LONG).show();
}
- public long getMasterKeyId() {
+ private long getMasterKeyId() {
if (mKeys.getEditors().getChildCount() == 0) {
return 0;
}
@@ -243,6 +243,7 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
newPassPhrase = oldPassPhrase;
}
Apg.buildSecretKey(this, mUserIds, mKeys, oldPassPhrase, newPassPhrase, this);
+ Apg.setCachedPassPhrase(getMasterKeyId(), newPassPhrase);
} catch (NoSuchProviderException e) {
error = e.getMessage();
} catch (NoSuchAlgorithmException e) {
diff --git a/src/org/thialfihar/android/apg/PublicKeyListActivity.java b/src/org/thialfihar/android/apg/PublicKeyListActivity.java
index 67bc608ad..a04d933d7 100644
--- a/src/org/thialfihar/android/apg/PublicKeyListActivity.java
+++ b/src/org/thialfihar/android/apg/PublicKeyListActivity.java
@@ -53,7 +53,7 @@ public class PublicKeyListActivity extends BaseActivity {
protected int mSelectedItem = -1;
protected int mTask = 0;
- private String mImportFilename = Constants.path.app_dir + "/pubring.gpg";
+ private String mImportFilename = Constants.path.app_dir + "/";
private String mExportFilename = Constants.path.app_dir + "/pubexport.asc";
@Override
diff --git a/src/org/thialfihar/android/apg/SecretKeyListActivity.java b/src/org/thialfihar/android/apg/SecretKeyListActivity.java
index a69fc5b9c..b1857dc6c 100644
--- a/src/org/thialfihar/android/apg/SecretKeyListActivity.java
+++ b/src/org/thialfihar/android/apg/SecretKeyListActivity.java
@@ -54,7 +54,7 @@ public class SecretKeyListActivity extends BaseActivity implements OnChildClickL
protected int mSelectedItem = -1;
protected int mTask = 0;
- private String mImportFilename = Constants.path.app_dir + "/secring.gpg";
+ private String mImportFilename = Constants.path.app_dir + "/";
private String mExportFilename = Constants.path.app_dir + "/secexport.asc";
@Override