assign click and long click to reactions

This commit is contained in:
k0shk0sh 2019-12-27 22:06:54 +01:00
parent cbbcbdc92d
commit a0e2b15690
3 changed files with 24 additions and 0 deletions

View File

@ -117,6 +117,14 @@ public class IssueDetailsViewHolder extends BaseViewHolder<TimelineModel> {
thumbsUpReaction.setOnLongClickListener(this);
hurrayReaction.setOnLongClickListener(this);
heartReaction.setOnLongClickListener(this);
rocketReaction.setOnLongClickListener(this);
rocketReaction.setOnClickListener(this);
rocket.setOnLongClickListener(this);
rocket.setOnClickListener(this);
eyeReaction.setOnLongClickListener(this);
eyeReaction.setOnClickListener(this);
eyes.setOnLongClickListener(this);
eyes.setOnClickListener(this);
}
public static IssueDetailsViewHolder newInstance(@NonNull ViewGroup viewGroup, @Nullable BaseRecyclerAdapter adapter,

View File

@ -126,6 +126,14 @@ public class ReviewCommentsViewHolder extends BaseViewHolder<ReviewCommentModel>
thumbsUpReaction.setOnLongClickListener(this);
hurrayReaction.setOnLongClickListener(this);
heartReaction.setOnLongClickListener(this);
rocketReaction.setOnLongClickListener(this);
rocketReaction.setOnClickListener(this);
rocket.setOnLongClickListener(this);
rocket.setOnClickListener(this);
eyeReaction.setOnLongClickListener(this);
eyeReaction.setOnClickListener(this);
eyes.setOnLongClickListener(this);
eyes.setOnClickListener(this);
}
public static ReviewCommentsViewHolder newInstance(ViewGroup viewGroup, BaseRecyclerAdapter adapter,

View File

@ -137,6 +137,14 @@ public class TimelineCommentsViewHolder extends BaseViewHolder<TimelineModel> {
thumbsUpReaction.setOnLongClickListener(this);
hurrayReaction.setOnLongClickListener(this);
heartReaction.setOnLongClickListener(this);
rocketReaction.setOnLongClickListener(this);
rocketReaction.setOnClickListener(this);
rocket.setOnLongClickListener(this);
rocket.setOnClickListener(this);
eyeReaction.setOnLongClickListener(this);
eyeReaction.setOnClickListener(this);
eyes.setOnLongClickListener(this);
eyes.setOnClickListener(this);
}
public static TimelineCommentsViewHolder newInstance(@NonNull ViewGroup viewGroup, @Nullable IssuesTimelineAdapter adapter,