mirror of https://github.com/M66B/FairEmail.git
Fixed junk button
This commit is contained in:
parent
2177b047e5
commit
84dcae03e8
|
@ -1160,9 +1160,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ibFull.setVisibility(View.VISIBLE);
|
||||
ibImages.setVisibility(View.GONE);
|
||||
ibUnsubscribe.setVisibility(message.unsubscribe == null ? View.GONE : View.VISIBLE);
|
||||
ibJunk.setEnabled(false);
|
||||
ibJunk.setVisibility(
|
||||
message.uid == null || message.folderReadOnly ||
|
||||
!hasJunk || EntityFolder.JUNK.equals(message.folderType)
|
||||
EntityFolder.JUNK.equals(message.folderType)
|
||||
? View.GONE : View.VISIBLE);
|
||||
ibDecrypt.setVisibility(View.GONE);
|
||||
ibVerify.setVisibility(View.GONE);
|
||||
|
@ -1290,6 +1291,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
delete = (inTrash || !hasTrash || inOutbox);
|
||||
|
||||
ibJunk.setEnabled(hasJunk);
|
||||
|
||||
bnvActions.getMenu().findItem(R.id.action_more).setVisible(!inOutbox);
|
||||
|
||||
if (!message.folderReadOnly) {
|
||||
|
|
Loading…
Reference in New Issue