1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-24 23:57:30 +00:00
This commit is contained in:
Austin Huang 2021-07-18 11:30:44 -04:00
parent 1229992a46
commit 468e09de75
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -128,7 +128,7 @@ public abstract class DirectItemViewHolder extends RecyclerView.ViewHolder imple
private void bindBase(@NonNull final DirectItem item, final MessageDirection messageDirection, final int position) {
final FrameLayout.LayoutParams containerLayoutParams = (FrameLayout.LayoutParams) binding.container.getLayoutParams();
final DirectItemType itemType = item.getItemType();
final DirectItemType itemType = item.getItemType() == null ? DirectItemType.UNKNOWN : item.getItemType();
setMessageDirectionGravity(messageDirection, containerLayoutParams);
setGroupUserDetails(item, messageDirection);
setBackground(messageDirection);