mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Blocked senders cannot be ignored
This commit is contained in:
parent
df90d4fe0d
commit
8225639a6f
1 changed files with 6 additions and 1 deletions
|
@ -162,6 +162,9 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
|
|||
contact.state == EntityContact.STATE_FAVORITE ? colorAccent : textColorSecondary));
|
||||
ivFavorite.setContentDescription(contact.state == EntityContact.STATE_FAVORITE
|
||||
? context.getString(R.string.title_accessibility_flagged) : null);
|
||||
ivFavorite.setVisibility(contact.type == EntityContact.TYPE_JUNK ||
|
||||
contact.type == EntityContact.TYPE_NO_JUNK
|
||||
? View.GONE : View.VISIBLE);
|
||||
|
||||
view.requestLayout();
|
||||
}
|
||||
|
@ -236,7 +239,9 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
|
|||
popupMenu.getMenu().add(Menu.NONE, 0, order++, via).setEnabled(false);
|
||||
}
|
||||
|
||||
if (contact.state != EntityContact.STATE_IGNORE)
|
||||
if (contact.state != EntityContact.STATE_IGNORE &&
|
||||
contact.type != EntityContact.TYPE_JUNK &&
|
||||
contact.type != EntityContact.TYPE_NO_JUNK)
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_advanced_never_favorite, order++, R.string.title_advanced_never_favorite);
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_share, order++, R.string.title_share); // should be system whitelisted
|
||||
if (Shortcuts.can(context))
|
||||
|
|
Loading…
Reference in a new issue