mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 08:37:29 +00:00
small fixes so i can test
1. left users are users not ids 2. null guard (crash) 3. arbitrary fix for layout issue
This commit is contained in:
parent
7e88fda645
commit
47e8645dea
@ -69,7 +69,7 @@ public final class DirectItemsAdapter extends RecyclerView.Adapter<RecyclerView.
|
||||
if (bothHeaders) {
|
||||
return oldItem.date.equals(newItem.date);
|
||||
}
|
||||
if (oldItem.item != null && newItem.item != null) {
|
||||
if (oldItem.item != null && oldItem.item.getClientContext() != null && newItem.item != null) {
|
||||
return oldItem.item.getClientContext().equals(newItem.item.getClientContext());
|
||||
}
|
||||
return false;
|
||||
|
@ -10,7 +10,7 @@ public class DirectThread {
|
||||
private final String threadId;
|
||||
private final String threadV2Id;
|
||||
private final List<DirectUser> users;
|
||||
private final List<String> leftUsers;
|
||||
private final List<DirectUser> leftUsers;
|
||||
private final List<String> adminUserIds;
|
||||
private final List<DirectItem> items;
|
||||
private final long lastActivityAt;
|
||||
@ -42,7 +42,7 @@ public class DirectThread {
|
||||
public DirectThread(final String threadId,
|
||||
final String threadV2Id,
|
||||
final List<DirectUser> users,
|
||||
final List<String> leftUsers,
|
||||
final List<DirectUser> leftUsers,
|
||||
final List<String> adminUserIds,
|
||||
final List<DirectItem> items,
|
||||
final long lastActivityAt,
|
||||
@ -115,7 +115,7 @@ public class DirectThread {
|
||||
return users;
|
||||
}
|
||||
|
||||
public List<String> getLeftUsers() {
|
||||
public List<DirectUser> getLeftUsers() {
|
||||
return leftUsers;
|
||||
}
|
||||
|
||||
|
@ -123,6 +123,7 @@
|
||||
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvUsername"
|
||||
app:layout_constraintWidth_min="wrap"
|
||||
app:layout_constraintWidth_max="230dp"
|
||||
app:viewPartInfo="@id/message_info"
|
||||
app:viewPartMain="@id/message">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user