|
|
|
@ -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);
|
|
|
|
|