mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -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.
|
// If we don't have any accounts with an archive folder, then don't enable the preference.
|
||||||
boolean hasArchiveFolder = false;
|
boolean hasArchiveFolder = false;
|
||||||
for(final Account acct : Preferences.getPreferences(this).getAccounts()) {
|
for (final Account acct : Preferences.getPreferences(this).getAccounts()) {
|
||||||
if(acct.hasArchiveFolder()) {
|
if (acct.hasArchiveFolder()) {
|
||||||
hasArchiveFolder = true;
|
hasArchiveFolder = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!hasArchiveFolder) {
|
if (!hasArchiveFolder) {
|
||||||
mBatchButtonsArchive.setEnabled(false);
|
mBatchButtonsArchive.setEnabled(false);
|
||||||
mBatchButtonsArchive.setSummary(R.string.global_settings_archive_disabled_reason);
|
mBatchButtonsArchive.setSummary(R.string.global_settings_archive_disabled_reason);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user