import file default for keys is empty now, changed import text a little, and changing the pass phrase during key editing updates the pass phrase cache
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user