diff --git a/common/src/main/java/com/yunbao/common/utils/ActiveImageAdapter.java b/common/src/main/java/com/yunbao/common/utils/ActiveImageAdapter.java index 8873592..22c61e8 100644 --- a/common/src/main/java/com/yunbao/common/utils/ActiveImageAdapter.java +++ b/common/src/main/java/com/yunbao/common/utils/ActiveImageAdapter.java @@ -188,6 +188,7 @@ public class ActiveImageAdapter extends RecyclerView.Adapter { void setData(ActiveImageBean bean, int position) { itemView.setTag(position); + del.setTag(position); if (bean.getImageFile() == null) { mImg.setImageDrawable(null); if (mIconAdd.getVisibility() != View.VISIBLE) { diff --git a/main/src/main/java/com/yunbao/main/activity/CommunitySendActivity.java b/main/src/main/java/com/yunbao/main/activity/CommunitySendActivity.java index 02355c0..1fb62a7 100644 --- a/main/src/main/java/com/yunbao/main/activity/CommunitySendActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/CommunitySendActivity.java @@ -198,12 +198,13 @@ public class CommunitySendActivity extends AbsActivity { activeImageAdapter.setActionListener(new ActiveImageAdapter.ActionListener() { @Override public void onAddClick() { - + openImageChooserActivity(); } @Override public void onItemClick(int position) { - + activeImageAdapter.deleteItem(position); + activeImageAdapter.notifyItemRemoved(position); } @Override