1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Fixed junk button visibility

This commit is contained in:
M66B 2020-01-12 10:26:15 +01:00
parent 3b548dab16
commit 4f442c934f

View file

@ -1161,8 +1161,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibImages.setVisibility(View.GONE);
ibUnsubscribe.setVisibility(message.unsubscribe == null ? View.GONE : View.VISIBLE);
ibJunk.setVisibility(
message.uid == null || message.folderReadOnly &&
(hasJunk && !EntityFolder.JUNK.equals(message.folderType))
message.uid == null || message.folderReadOnly ||
!hasJunk || EntityFolder.JUNK.equals(message.folderType)
? View.GONE : View.VISIBLE);
ibDecrypt.setVisibility(View.GONE);
ibVerify.setVisibility(View.GONE);