mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 09:52:16 -05:00
Actually save the AlwaysBcc preference
This commit is contained in:
parent
ba3539df89
commit
cf6a2379a0
@ -87,7 +87,9 @@ public class AccountSettings extends PreferenceActivity {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mAccountAlwaysBcc = (EditTextPreference) findPreference(PREFERENCE_ALWAYS_BCC);
|
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.setText(mAccount.getAlwaysBcc());
|
||||||
mAccountAlwaysBcc.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
mAccountAlwaysBcc.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
@ -167,6 +169,7 @@ public class AccountSettings extends PreferenceActivity {
|
|||||||
}
|
}
|
||||||
mAccount.setDescription(mAccountDescription.getText());
|
mAccount.setDescription(mAccountDescription.getText());
|
||||||
mAccount.setName(mAccountName.getText());
|
mAccount.setName(mAccountName.getText());
|
||||||
|
mAccount.setAlwaysBcc(mAccountAlwaysBcc.getText());
|
||||||
mAccount.setNotifyNewMail(mAccountNotify.isChecked());
|
mAccount.setNotifyNewMail(mAccountNotify.isChecked());
|
||||||
mAccount.setAutomaticCheckIntervalMinutes(Integer.parseInt(mCheckFrequency.getValue()));
|
mAccount.setAutomaticCheckIntervalMinutes(Integer.parseInt(mCheckFrequency.getValue()));
|
||||||
mAccount.setVibrate(mAccountVibrate.isChecked());
|
mAccount.setVibrate(mAccountVibrate.isChecked());
|
||||||
|
Loading…
Reference in New Issue
Block a user