From cf6a2379a002d8def4da9b248c20e618a307f2a3 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 29 Oct 2008 04:17:10 +0000 Subject: [PATCH] Actually save the AlwaysBcc preference --- src/com/fsck/k9/activity/setup/AccountSettings.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/setup/AccountSettings.java b/src/com/fsck/k9/activity/setup/AccountSettings.java index 5eb38ee07..fa8837c3d 100644 --- a/src/com/fsck/k9/activity/setup/AccountSettings.java +++ b/src/com/fsck/k9/activity/setup/AccountSettings.java @@ -87,7 +87,9 @@ public class AccountSettings extends PreferenceActivity { }); mAccountAlwaysBcc = (EditTextPreference) findPreference(PREFERENCE_ALWAYS_BCC); - mAccountAlwaysBcc.setSummary(mAccount.getAlwaysBcc()); + if (mAccount.getAlwaysBcc() != null && (mAccount.getAlwaysBcc().length() > 0 )) { + mAccountAlwaysBcc.setSummary(mAccount.getAlwaysBcc()); + } mAccountAlwaysBcc.setText(mAccount.getAlwaysBcc()); mAccountAlwaysBcc.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { public boolean onPreferenceChange(Preference preference, Object newValue) { @@ -167,6 +169,7 @@ public class AccountSettings extends PreferenceActivity { } mAccount.setDescription(mAccountDescription.getText()); mAccount.setName(mAccountName.getText()); + mAccount.setAlwaysBcc(mAccountAlwaysBcc.getText()); mAccount.setNotifyNewMail(mAccountNotify.isChecked()); mAccount.setAutomaticCheckIntervalMinutes(Integer.parseInt(mCheckFrequency.getValue())); mAccount.setVibrate(mAccountVibrate.isChecked());