Properly hide content warning in quoted post
This commit is contained in:
parent
c6081fb4d4
commit
962c094f7e
|
@ -619,6 +619,8 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
||||||
displayItems.addAll(index+1, spoilerItem.contentItems);
|
displayItems.addAll(index+1, spoilerItem.contentItems);
|
||||||
adapter.notifyItemRangeInserted(index+1, spoilerItem.contentItems.size());
|
adapter.notifyItemRangeInserted(index+1, spoilerItem.contentItems.size());
|
||||||
}else{
|
}else{
|
||||||
|
if(spoilers.size()>1 && !isForQuote && status.quote.spoilerRevealed)
|
||||||
|
toggleSpoiler(status.quote, true, itemID);
|
||||||
displayItems.subList(index+1, index+1+spoilerItem.contentItems.size()).clear();
|
displayItems.subList(index+1, index+1+spoilerItem.contentItems.size()).clear();
|
||||||
adapter.notifyItemRangeRemoved(index+1, spoilerItem.contentItems.size());
|
adapter.notifyItemRangeRemoved(index+1, spoilerItem.contentItems.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue