Actually save the AlwaysBcc preference

This commit is contained in:
Jesse Vincent 2008-10-29 04:17:10 +00:00
parent ba3539df89
commit cf6a2379a0

View file

@ -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());