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 ad08fb703..55e6a9883 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java @@ -706,12 +706,12 @@ public abstract class BaseStatusListFragment exten toggleSpoiler(status, isForQuote, holder.getItemID()); } - public void updateStatusWithQuote(Status status) { + public void updateStatusWithQuote(DisplayItemsParent parent) { int startIndex=-1; int endIndex=-1; for(int i=0; i exten if (startIndex!=-1 && endIndex!=-1) { //Only StatusListFragments can display Status/Quotes - assert this instanceof StatusListFragment; - List items=((StatusListFragment) this).buildDisplayItems(status); + assert (this instanceof StatusListFragment) || (this instanceof NotificationsListFragment); + List items=this.buildDisplayItems((T) parent); displayItems.subList(startIndex, endIndex+1).clear(); boolean isEmpty=displayItems.isEmpty(); displayItems.addAll(startIndex, items);