Remove outdated stableId pattern from ConversationAdapter.
This commit is contained in:
parent
0c00426c0c
commit
da2e2a99af
1 changed files with 0 additions and 24 deletions
|
@ -102,9 +102,6 @@ public class ConversationAdapter
|
||||||
|
|
||||||
private static final int PAYLOAD_TIMESTAMP = 0;
|
private static final int PAYLOAD_TIMESTAMP = 0;
|
||||||
|
|
||||||
private static final long HEADER_ID = Long.MIN_VALUE;
|
|
||||||
private static final long FOOTER_ID = Long.MIN_VALUE + 1;
|
|
||||||
|
|
||||||
private final ItemClickListener clickListener;
|
private final ItemClickListener clickListener;
|
||||||
private final Context context;
|
private final Context context;
|
||||||
private final LifecycleOwner lifecycleOwner;
|
private final LifecycleOwner lifecycleOwner;
|
||||||
|
@ -163,8 +160,6 @@ public class ConversationAdapter
|
||||||
this.hasWallpaper = recipient.hasWallpaper();
|
this.hasWallpaper = recipient.hasWallpaper();
|
||||||
this.isMessageRequestAccepted = true;
|
this.isMessageRequestAccepted = true;
|
||||||
this.colorizer = colorizer;
|
this.colorizer = colorizer;
|
||||||
|
|
||||||
setHasStableIds(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -191,25 +186,6 @@ public class ConversationAdapter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getItemId(int position) {
|
|
||||||
if (hasHeader() && position == 0) {
|
|
||||||
return HEADER_ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasFooter() && position == getItemCount() - 1) {
|
|
||||||
return FOOTER_ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
ConversationMessage message = getItem(position);
|
|
||||||
|
|
||||||
if (message == null) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return message.getUniqueId(digest);
|
|
||||||
}
|
|
||||||
|
|
||||||
@SuppressLint("ClickableViewAccessibility")
|
@SuppressLint("ClickableViewAccessibility")
|
||||||
@Override
|
@Override
|
||||||
public @NonNull RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public @NonNull RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue