Make clicking on post more crashy

This commit is contained in:
fruye 2022-12-10 21:29:34 +01:00
parent 6232949932
commit c107aa78ef
1 changed files with 1 additions and 4 deletions

View File

@ -728,10 +728,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
* just eat the clicks instead of deferring to the parent listener, but WILL respond to a
* listener directly on the TextView, for whatever reason. */
View.OnClickListener viewThreadListener = v -> {
int position = getBindingAdapterPosition();
if (position != RecyclerView.NO_POSITION) {
listener.onViewThread(position);
}
listener.onViewThread(getBindingAdapterPosition());
};
content.setOnClickListener(viewThreadListener);
itemView.setOnClickListener(viewThreadListener);