Allow excluding trash/spam for account search

This commit is contained in:
M66B 2021-06-17 14:58:57 +02:00
parent 697bda090b
commit 86c2ee5f66
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
" matches=" + (state.matches == null ? null : state.matches.size()));
long[] exclude = new long[0];
if (account == null) {
if (folder == null) {
List<Long> folders = new ArrayList<>();
if (!criteria.in_trash) {
List<EntityFolder> trash = db.folder().getFoldersByType(EntityFolder.TRASH);

View File

@ -227,7 +227,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
cbHeaders.setVisibility(View.VISIBLE);
cbHtml.setVisibility(View.VISIBLE);
}
if (account < 0) {
if (folder < 0) {
cbSearchTrash.setVisibility(View.VISIBLE);
cbSearchJunk.setVisibility(View.VISIBLE);
}