fix(status/edit-history): check for negative array index

This commit is contained in:
FineFindus 2023-11-08 19:36:24 +01:00
parent 09d0e82216
commit f0b87c62a5
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}