diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java index ea6c5f99eb..60f351dbba 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java @@ -763,12 +763,14 @@ public void onToggleExpanded(Status status, String itemID) { public void onGapClick(GapStatusDisplayItem.Holder item, boolean downwards){} public void onWarningClick(WarningFilteredStatusDisplayItem.Holder warning){ - int startPos = warning.getAbsoluteAdapterPosition(); + WarningFilteredStatusDisplayItem filterItem=findItemOfType(warning.getItemID(), WarningFilteredStatusDisplayItem.class); + int startPos=displayItems.indexOf(filterItem); displayItems.remove(startPos); displayItems.addAll(startPos, warning.filteredItems); adapter.notifyItemRangeInserted(startPos, warning.filteredItems.size() - 1); if (startPos == 0) scrollToTop(); warning.getItem().status.filterRevealed = true; + list.invalidateItemDecorations(); } @Override