tomergoldst / tooltips

Simple to use library for android, enabling to add a tooltip near any view with ease
835 stars 97 forks source link

ConcurrentModificationException #20

Closed jypDev closed 7 years ago

jypDev commented 7 years ago

ToolTipsManager.clear() cause Exception by dismiss() in remove the Map

If you try to delete more than one item, the problem occurs.

public void clear() {
        if (!mTipsMap.isEmpty()) {
            for (Map.Entry<Integer, View> entry : mTipsMap.entrySet()) {
                dismiss(entry.getValue(), false);     //Do not delete items from this part.
            }
        }
        mTipsMap.clear();
    }
tomergoldst commented 7 years ago

fixed in version 1.0.8