diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/WarningFilteredStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/WarningFilteredStatusDisplayItem.java index 1640572c5..5f0867d02 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/WarningFilteredStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/WarningFilteredStatusDisplayItem.java @@ -31,13 +31,11 @@ public class WarningFilteredStatusDisplayItem extends StatusDisplayItem{ } public static class Holder extends StatusDisplayItem.Holder{ - public final View warningWrap; public final TextView text; public List filteredItems; public Holder(Context context, ViewGroup parent) { super(context, R.layout.display_item_filter_warning, parent); - warningWrap=findViewById(R.id.warning_wrap); text=findViewById(R.id.text); } @@ -45,11 +43,7 @@ public class WarningFilteredStatusDisplayItem extends StatusDisplayItem{ public void onBind(WarningFilteredStatusDisplayItem item) { filteredItems = item.filteredItems; text.setText(item.parentFragment.getString(R.string.sk_filtered, item.applyingFilter.title)); - } - - @Override - public void onClick() { - item.parentFragment.onWarningClick(this); + itemView.setOnClickListener(v->item.parentFragment.onWarningClick(this)); } } } diff --git a/mastodon/src/main/res/layout/display_item_filter_warning.xml b/mastodon/src/main/res/layout/display_item_filter_warning.xml index f6a8f804a..dae144d30 100644 --- a/mastodon/src/main/res/layout/display_item_filter_warning.xml +++ b/mastodon/src/main/res/layout/display_item_filter_warning.xml @@ -3,7 +3,6 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:id="@+id/warning_wrap" android:background="@drawable/bg_filter_warning">