mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
enable passphrase changing for subkey only keychains
This commit is contained in:
parent
5db08b9bdc
commit
723a89079c
Binary file not shown.
@ -540,9 +540,9 @@ public class KeychainIntentService extends IntentService implements ProgressDial
|
|||||||
long masterKeyId = data.getLong(SAVE_KEYRING_MASTER_KEY_ID);
|
long masterKeyId = data.getLong(SAVE_KEYRING_MASTER_KEY_ID);
|
||||||
|
|
||||||
/* Operation */
|
/* Operation */
|
||||||
if (!canSign) { //library fails, fix later
|
if (!canSign) {
|
||||||
//PgpMain.changeSecretKeyPassphrase(this, ProviderHelper.getPGPSecretKeyRingByKeyId(this, masterKeyId),
|
PgpMain.changeSecretKeyPassphrase(this, ProviderHelper.getPGPSecretKeyRingByKeyId(this, masterKeyId),
|
||||||
//oldPassPhrase, newPassPhrase, this);
|
oldPassPhrase, newPassPhrase, this);
|
||||||
} else {
|
} else {
|
||||||
PgpMain.buildSecretKey(this, userIds, keys, keysUsages, masterKeyId, oldPassPhrase,
|
PgpMain.buildSecretKey(this, userIds, keys, keysUsages, masterKeyId, oldPassPhrase,
|
||||||
newPassPhrase, this);
|
newPassPhrase, this);
|
||||||
|
@ -194,13 +194,6 @@ public class EditKeyActivity extends SherlockFragmentActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//disable key passhphrase changing with empty private keys for no
|
|
||||||
//library fails, fix later
|
|
||||||
if (!masterCanSign) {
|
|
||||||
mChangePassPhrase.setEnabled(false);
|
|
||||||
mNoPassphrase.setEnabled(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mBuildLayout) {
|
if (mBuildLayout) {
|
||||||
buildLayout();
|
buildLayout();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user