Blocked senders cannot be ignored

pull/212/head
M66B 2 years ago
parent df90d4fe0d
commit 8225639a6f

@ -162,6 +162,9 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
contact.state == EntityContact.STATE_FAVORITE ? colorAccent : textColorSecondary)); contact.state == EntityContact.STATE_FAVORITE ? colorAccent : textColorSecondary));
ivFavorite.setContentDescription(contact.state == EntityContact.STATE_FAVORITE ivFavorite.setContentDescription(contact.state == EntityContact.STATE_FAVORITE
? context.getString(R.string.title_accessibility_flagged) : null); ? 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(); view.requestLayout();
} }
@ -236,7 +239,9 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
popupMenu.getMenu().add(Menu.NONE, 0, order++, via).setEnabled(false); 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_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 popupMenu.getMenu().add(Menu.NONE, R.string.title_share, order++, R.string.title_share); // should be system whitelisted
if (Shortcuts.can(context)) if (Shortcuts.can(context))

Loading…
Cancel
Save