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
|
* just eat the clicks instead of deferring to the parent listener, but WILL respond to a
|
||||||
* listener directly on the TextView, for whatever reason. */
|
* listener directly on the TextView, for whatever reason. */
|
||||||
View.OnClickListener viewThreadListener = v -> {
|
View.OnClickListener viewThreadListener = v -> {
|
||||||
int position = getBindingAdapterPosition();
|
listener.onViewThread(getBindingAdapterPosition());
|
||||||
if (position != RecyclerView.NO_POSITION) {
|
|
||||||
listener.onViewThread(position);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
content.setOnClickListener(viewThreadListener);
|
content.setOnClickListener(viewThreadListener);
|
||||||
itemView.setOnClickListener(viewThreadListener);
|
itemView.setOnClickListener(viewThreadListener);
|
||||||
|
|
Loading…
Reference in New Issue