Merge pull request #731 from FineFindus/fix/edit-history-crash
fix: edit history crash
This commit is contained in:
commit
ef7136cb81
|
@ -26,6 +26,11 @@ public class GetStatusEditHistory extends MastodonAPIRequest<List<Status>>{
|
|||
s.visibility=StatusPrivacy.PUBLIC;
|
||||
s.mentions=Collections.emptyList();
|
||||
s.tags=Collections.emptyList();
|
||||
if(s.poll!=null){
|
||||
s.poll.id="fakeID"+i;
|
||||
s.poll.emojis=Collections.emptyList();
|
||||
s.poll.ownVotes=Collections.emptyList();
|
||||
}
|
||||
i++;
|
||||
}
|
||||
super.validateAndPostprocessResponse(respObj, httpResponse);
|
||||
|
|
|
@ -93,7 +93,7 @@ public class InsetStatusItemDecoration extends RecyclerView.ItemDecoration{
|
|||
outRect.left=outRect.right=V.dp(8);
|
||||
if(!bottomSiblingInset)
|
||||
outRect.bottom=V.dp(16);
|
||||
if(!topSiblingInset && displayItems.get(pos-1) instanceof NotificationHeaderStatusDisplayItem)
|
||||
if(!topSiblingInset && pos > 1 && displayItems.get(pos-1) instanceof NotificationHeaderStatusDisplayItem)
|
||||
outRect.top=V.dp(-8);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue