修復圖片刪除不了
This commit is contained in:
parent
4d4d3d1bae
commit
9427fb8aaa
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user