Make clicking on post more crashy
This commit is contained in:
parent
6232949932
commit
c107aa78ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue