aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
diff options
context:
space:
mode:
authorAshley Hughes <spirit.returned@gmail.com>2014-02-22 13:54:59 +0000
committerAshley Hughes <spirit.returned@gmail.com>2014-02-22 13:54:59 +0000
commit1a28a4e9214add62b2b1e23b4579e0a4d585f52e (patch)
tree5f65549ad3419eeaa23174c38816c380d6189fb6 /OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
parent1b25ec5a0c011f5024d5f14f9919645a455e8a41 (diff)
downloadopen-keychain-1a28a4e9214add62b2b1e23b4579e0a4d585f52e.tar.gz
open-keychain-1a28a4e9214add62b2b1e23b4579e0a4d585f52e.tar.bz2
open-keychain-1a28a4e9214add62b2b1e23b4579e0a4d585f52e.zip
change how primary id changing is passed through
Diffstat (limited to 'OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java')
-rw-r--r--OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
index 9e517b93e..73de7ca6e 100644
--- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
+++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
@@ -128,6 +128,7 @@ public class KeychainIntentService extends IntentService implements ProgressDial
public static final String SAVE_KEYRING_NEW_PASSPHRASE = "new_passphrase";
public static final String SAVE_KEYRING_CURRENT_PASSPHRASE = "current_passphrase";
public static final String SAVE_KEYRING_USER_IDS = "user_ids";
+ public static final String SAVE_KEYRING_PRIMARY_ID_CHANGED = "primary_id_changed";
public static final String SAVE_KEYRING_KEYS = "keys";
public static final String SAVE_KEYRING_KEYS_USAGES = "keys_usages";
public static final String SAVE_KEYRING_KEYS_EXPIRY_DATES = "keys_expiry_dates";
@@ -549,6 +550,7 @@ public class KeychainIntentService extends IntentService implements ProgressDial
boolean[] modded_keys = data.getBooleanArray(SAVE_KEYRING_MODDED_KEYS);
ArrayList<PGPSecretKey> deletedKeys = PgpConversionHelper.BytesToPGPSecretKeyList(data
.getByteArray(SAVE_KEYRING_DELETED_KEYS));
+ boolean primaryChanged = data.getBoolean(SAVE_KEYRING_PRIMARY_ID_CHANGED);
long masterKeyId = data.getLong(SAVE_KEYRING_MASTER_KEY_ID);
@@ -559,8 +561,9 @@ public class KeychainIntentService extends IntentService implements ProgressDial
ProviderHelper.getPGPSecretKeyRingByKeyId(this, masterKeyId),
oldPassPhrase, newPassPhrase);
} else {
- keyOperations.buildSecretKey(userIds, original_ids, deleted_ids, keys, modded_keys,
- deletedKeys, keysExpiryDates, keysUsages, newPassPhrase, oldPassPhrase);
+ keyOperations.buildSecretKey(userIds, original_ids, deleted_ids, primaryChanged,
+ modded_keys, deletedKeys, keysExpiryDates, keysUsages, newPassPhrase,
+ oldPassPhrase, keys);
}
PassphraseCacheService.addCachedPassphrase(this, masterKeyId, newPassPhrase);