From d4bf238345ab73a91d47960de68a41811c753228 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 18 Nov 2019 00:03:04 +0800 Subject: Double tap to upvote comments. --- .../Adapter/CommentAndPostRecyclerViewAdapter.java | 34 ++++++++++++++++++++++ .../CommentsListingRecyclerViewAdapter.java | 34 ++++++++++++++++++++++ 2 files changed, 68 insertions(+) (limited to 'app/src/main/java/ml/docilealligator') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java index 3fcea5d7..745a1c96 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java @@ -10,7 +10,9 @@ import android.net.Uri; import android.os.Bundle; import android.text.util.Linkify; import android.util.TypedValue; +import android.view.GestureDetector; import android.view.LayoutInflater; +import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.Button; @@ -862,6 +864,38 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter