mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Added no junk folder solution
This commit is contained in:
@@ -1741,7 +1741,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
boolean archive = (move && (hasArchive && !inArchive && !inSent && !inTrash && !inJunk));
|
||||
boolean trash = (move || outbox || debug ||
|
||||
message.accountProtocol == EntityAccount.TYPE_POP);
|
||||
boolean junk = (move && hasJunk && hasInbox);
|
||||
boolean inbox = (move && hasInbox && (inArchive || inTrash || inJunk));
|
||||
boolean keywords = (!message.folderReadOnly && message.uid != null &&
|
||||
message.accountProtocol == EntityAccount.TYPE_IMAP);
|
||||
@@ -1810,7 +1809,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
ibMove.setVisibility(tools && button_move && move ? View.VISIBLE : View.GONE);
|
||||
ibArchive.setVisibility(tools && button_archive && archive ? View.VISIBLE : View.GONE);
|
||||
ibTrash.setVisibility(outbox || (tools && button_trash && trash) ? View.VISIBLE : View.GONE);
|
||||
ibJunk.setVisibility(tools && button_junk && junk ? View.VISIBLE : View.GONE);
|
||||
ibJunk.setVisibility(tools && button_junk && move ? View.VISIBLE : View.GONE);
|
||||
ibInbox.setVisibility(tools && inbox ? View.VISIBLE : View.GONE);
|
||||
ibMore.setVisibility(tools && !outbox ? View.VISIBLE : View.GONE);
|
||||
ibTools.setImageLevel(tools ? 0 : 1);
|
||||
|
||||
Reference in New Issue
Block a user