diff --git a/common/src/main/java/com/yunbao/common/adapter/BaseAdapter.java b/common/src/main/java/com/yunbao/common/adapter/BaseAdapter.java index d77d3c901..e53971c5b 100644 --- a/common/src/main/java/com/yunbao/common/adapter/BaseAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/BaseAdapter.java @@ -26,7 +26,7 @@ public abstract class BaseAdapter extends RecyclerView.Adapter extends RecyclerView.Adapter extends RecyclerView.Adapter(); + if (onItemClickListener != null){ + itemView.setOnClickListener(v ->onItemClickListener.onItemClick(getAdapterPosition()) ); + } } public View getView(int id) { @@ -54,7 +57,6 @@ public abstract class BaseAdapter extends RecyclerView.Adapter { - onItemClickListener.onItemClick(getAdapterPosition()); onItemClickListener.onItemChildClick(v, getAdapterPosition()); }); } diff --git a/live/src/main/res/layout/item_live_report_foot.xml b/live/src/main/res/layout/item_live_report_foot.xml index cefc4fbd1..4c76757d0 100644 --- a/live/src/main/res/layout/item_live_report_foot.xml +++ b/live/src/main/res/layout/item_live_report_foot.xml @@ -16,6 +16,7 @@ android:layout_marginTop="20dp" android:gravity="top" android:padding="5dp" + android:maxLength="50" android:hint="@string/video_report_tip_2" android:textColor="@color/textColor" android:textSize="14sp"