1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00
This commit is contained in:
Andrew Chen 2012-04-06 16:42:54 -07:00
parent 42d6462946
commit 3559618ca9

View File

@ -370,13 +370,13 @@ public class Prefs extends K9PreferenceActivity {
// If we don't have any accounts with an archive folder, then don't enable the preference.
boolean hasArchiveFolder = false;
for(final Account acct : Preferences.getPreferences(this).getAccounts()) {
if(acct.hasArchiveFolder()) {
for (final Account acct : Preferences.getPreferences(this).getAccounts()) {
if (acct.hasArchiveFolder()) {
hasArchiveFolder = true;
break;
}
}
if(!hasArchiveFolder) {
if (!hasArchiveFolder) {
mBatchButtonsArchive.setEnabled(false);
mBatchButtonsArchive.setSummary(R.string.global_settings_archive_disabled_reason);
}