Enable auto delete for spam

This commit is contained in:
M66B
2019-07-06 20:26:33 +02:00
parent c127ff6fa4
commit 40d55cfd00
2 changed files with 6 additions and 2 deletions

View File

@@ -210,7 +210,10 @@ public class FragmentFolder extends FragmentBase {
else
etKeepDays.setText(Integer.toString(folder == null ? EntityFolder.DEFAULT_KEEP : folder.keep_days));
cbAutoDelete.setChecked(folder == null ? false : folder.auto_delete);
cbAutoDelete.setVisibility(folder != null && EntityFolder.TRASH.equals(folder.type) ? View.VISIBLE : View.GONE);
cbAutoDelete.setVisibility(
folder != null &&
(EntityFolder.JUNK.equals(folder.type) || EntityFolder.TRASH.equals(folder.type))
? View.VISIBLE : View.GONE);
}
// Consider previous save as cancelled