Dmytro D
Dmytro D

Reputation: 2584

onLongClick called twice

I registered onLongCLickListener for ImageVIew in onBindViewHolder method of my recycler adapter(maybe not best way to do it there).

         swipeBaseViewHolder.ava.setOnLongClickListener(new View.OnLongClickListener() {
                @Override
                public boolean onLongClick(View v) {
                    Log.i(TAG,"longclick");
                }
            }

And when i checked logcat, i noticed longclick called twice on one long click on image.

Upvotes: 1

Views: 585

Answers (1)

Dmytro D
Dmytro D

Reputation: 2584

So it was bug in android Swipelayout lib. One of pull requests on github resolved this issue

Upvotes: 1

Related Questions