From 09efd35b29060e9a56b1fd1ac9449b970adfdbf1 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 17 Jul 2020 16:20:19 +0800 Subject: Fix the first post card not clickable in PostRecyclerView Adapter. --- .../infinityforreddit/Adapter/PostRecyclerViewAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java index 02c2e4d0..45e6cc1d 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java @@ -1354,7 +1354,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter { int position = getAdapterPosition(); - if (position > 0 && canStartActivity) { + if (position >= 0 && canStartActivity) { canStartActivity = false; Intent intent = new Intent(mActivity, ViewPostDetailActivity.class); -- cgit v1.2.3