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:
Thialfihar
2010-05-19 14:51:58 +00:00
parent 5b28bbdee2
commit f424b7f581
7 changed files with 41 additions and 7 deletions

View File

@@ -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) {