mirror of
https://github.com/pachli/pachli-android.git
synced 2025-02-08 07:58:55 +01:00
fix crash in NotificationAdapter when status is null (#1634)
This commit is contained in:
parent
611f9118ef
commit
cd52caf9e9
@ -199,7 +199,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
|||||||
} else {
|
} else {
|
||||||
if (payloadForHolder instanceof List)
|
if (payloadForHolder instanceof List)
|
||||||
for (Object item : (List) payloadForHolder) {
|
for (Object item : (List) payloadForHolder) {
|
||||||
if (StatusBaseViewHolder.Key.KEY_CREATED.equals(item)) {
|
if (StatusBaseViewHolder.Key.KEY_CREATED.equals(item) && statusViewData != null) {
|
||||||
holder.setCreatedAt(statusViewData.getCreatedAt());
|
holder.setCreatedAt(statusViewData.getCreatedAt());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user