diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/NotificationHeaderStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/NotificationHeaderStatusDisplayItem.java index 7e9fd80771..f85f710078 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/NotificationHeaderStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/NotificationHeaderStatusDisplayItem.java @@ -113,7 +113,6 @@ public ImageLoaderRequest getImageRequest(int index){ public static class Holder extends StatusDisplayItem.Holder implements ImageLoaderViewHolder{ private final ImageView icon, avatar; private final TextView text; - private final int selectableItemBackground; public Holder(Activity activity, ViewGroup parent){ super(activity, R.layout.display_item_notification_header, parent); @@ -124,10 +123,8 @@ public Holder(Activity activity, ViewGroup parent){ avatar.setOutlineProvider(OutlineProviders.roundedRect(8)); avatar.setClipToOutline(true); - itemView.setOnClickListener(this::onItemClick); - TypedValue outValue = new TypedValue(); - context.getTheme().resolveAttribute(android.R.attr.selectableItemBackground, outValue, true); - selectableItemBackground = outValue.resourceId; + icon.setOnClickListener(this::onItemClick); + avatar.setOnClickListener(this::onItemClick); } @Override @@ -170,10 +167,7 @@ public void onBind(NotificationHeaderStatusDisplayItem item){ case POLL -> R.attr.colorPoll; default -> android.R.attr.colorAccent; }))); - itemView.setBackgroundResource(item.notification.type != Notification.Type.POLL - && item.notification.type != Notification.Type.REPORT ? - selectableItemBackground : 0); - itemView.setClickable(item.notification.type != Notification.Type.POLL); + itemView.setBackgroundResource(0); } public void onItemClick(View v) {