mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Allow excluding trash/spam for account search
This commit is contained in:
parent
697bda090b
commit
86c2ee5f66
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue