TagView icon indicating copy to clipboard operation
TagView copied to clipboard

Delete item from inner collection in onDelete

Open mtychyna opened this issue 9 years ago • 1 comments

After onDelete the item is still in inner collection, and it can break business logic.

                deletableView.setOnClickListener(new OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        if (mDeleteListener != null) {
                            Tag targetTag = tag;
                            mDeleteListener.onTagDeleted(TagView.this, targetTag, position);
                        }
                    }
                });

Need delete from inner mTags!

mtychyna avatar Apr 27 '16 08:04 mtychyna

It depends on you. The library can remove but maybe you want just disappear the tags so if you want to remove from mTags. you can just initiliaze the tag's list which updated one.

Cutta avatar Aug 02 '16 14:08 Cutta