Skip to content

Commit

Permalink
fix: add args in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Nov 10, 2023
1 parent 47b1338 commit 75e1a17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected void updatePoll(String itemID, Status status, Poll poll){
List<StatusDisplayItem> pollItems=displayItems.subList(firstOptionIndex, footerIndex+1);
int prevSize=pollItems.size();
pollItems.clear();
StatusDisplayItem.buildPollItems(itemID, this, poll, pollItems, status);
StatusDisplayItem.buildPollItems(itemID, this, poll, status, pollItems);
if(prevSize!=pollItems.size()){
adapter.notifyItemRangeRemoved(firstOptionIndex, prevSize);
adapter.notifyItemRangeInserted(firstOptionIndex, pollItems.size());
Expand Down

0 comments on commit 75e1a17

Please sign in to comment.