From 3f0f3cca6afa65dba4ff5868e5112cce39e2dc94 Mon Sep 17 00:00:00 2001 From: Ashley Hughes Date: Sat, 1 Feb 2014 16:36:33 +0000 Subject: [PATCH] wrong types being created --- .../sufficientlysecure/keychain/ui/widget/SectionView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/SectionView.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/SectionView.java index 83661d140..96e434e20 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/SectionView.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/SectionView.java @@ -297,10 +297,10 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor PGPSecretKey masterKey = ((KeyEditor) mEditors.getChildAt(0)).getValue(); passPhrase = PassphraseCacheService .getCachedPassphrase(mActivity, masterKey.getKeyID()); - isMasterKey = true; + isMasterKey = false; } else { passPhrase = ""; - isMasterKey = false; + isMasterKey = true; } data.putBoolean(KeychainIntentService.GENERATE_KEY_MASTER_KEY, isMasterKey); data.putString(KeychainIntentService.GENERATE_KEY_SYMMETRIC_PASSPHRASE, passPhrase);