mirror of https://github.com/M66B/FairEmail.git
Suppress folder type icon in unified system folders
This commit is contained in:
parent
0b9d717eb4
commit
bd3cc5018d
|
@ -657,7 +657,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ivType.setImageResource(message.drafts > 0
|
||||
? R.drawable.baseline_edit_24 : EntityFolder.getIcon(message.folderType));
|
||||
ivType.setVisibility(message.drafts > 0 ||
|
||||
(viewType == ViewType.UNIFIED && !EntityFolder.INBOX.equals(message.folderType)) ||
|
||||
(viewType == ViewType.UNIFIED && type == null && !EntityFolder.INBOX.equals(message.folderType)) ||
|
||||
(viewType == ViewType.THREAD && EntityFolder.SENT.equals(message.folderType))
|
||||
? View.VISIBLE : View.GONE);
|
||||
ivAuth.setVisibility(authentication && !authenticated ? View.VISIBLE : View.GONE);
|
||||
|
@ -683,7 +683,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
tvFolder.setVisibility(compact &&
|
||||
(viewType == ViewType.FOLDER ||
|
||||
(type == null && viewType == ViewType.UNIFIED && EntityFolder.INBOX.equals(message.folderType)))
|
||||
(viewType == ViewType.UNIFIED && type == null && EntityFolder.INBOX.equals(message.folderType)))
|
||||
? View.GONE : View.VISIBLE);
|
||||
|
||||
if (viewType == ViewType.THREAD || !threading) {
|
||||
|
|
Loading…
Reference in New Issue