hashtag-view icon indicating copy to clipboard operation
hashtag-view copied to clipboard

Double click

Open AAlier opened this issue 6 years ago • 2 comments

public void addOnTagClickListener(TagsClickListener listener) { if (clickListeners == null) { clickListeners = new ArrayList<>(); } clickListeners.clear(); clickListeners.add(listener); } Suggest you to add clickListeners.clear(); because without it it gets clicked several times although I have added tag click listener once

AAlier avatar Jun 03 '18 07:06 AAlier

The idea behind that is you may add several different listeners which does different work. If you created one listener and it was triggered twice, then you added it twice somewhere.

P.S. I will probably consider idea about how to prevent adding the same listener several times.

greenfrvr avatar Sep 17 '18 14:09 greenfrvr

public void addOnTagClickListener(TagsClickListener listener) { if (clickListeners == null) { clickListeners = new ArrayList<>(); } clickListeners.clear(); clickListeners.add(listener); } Suggest you to add clickListeners.clear(); because without it it gets clicked several times although I have added tag click listener once

That is my problem too, it's a little bit weird

shaheenzahedi avatar Oct 10 '18 19:10 shaheenzahedi