Blocked senders cannot be ignored

This commit is contained in:
M66B 2023-01-24 20:29:49 +01:00
parent df90d4fe0d
commit 8225639a6f
1 changed files with 6 additions and 1 deletions

View File

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