mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
astyle
This commit is contained in:
parent
42d6462946
commit
3559618ca9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user