diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-07-17 08:20:19 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-07-17 08:20:19 +0000 |
commit | 09efd35b29060e9a56b1fd1ac9449b970adfdbf1 (patch) | |
tree | f9ab35eb98dcc89c6fee3d5a75dcb4ee648504ee /app/src | |
parent | d06f66975e40ebbf599ea66ed4c9794de085a890 (diff) | |
download | infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.tar infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.tar.gz infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.tar.bz2 infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.tar.lz infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.tar.xz infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.tar.zst infinity-for-reddit-09efd35b29060e9a56b1fd1ac9449b970adfdbf1.zip |
Fix the first post card not clickable in PostRecyclerView Adapter.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Post, RecyclerView cardView.setOnClickListener(view -> { int position = getAdapterPosition(); - if (position > 0 && canStartActivity) { + if (position >= 0 && canStartActivity) { canStartActivity = false; Intent intent = new Intent(mActivity, ViewPostDetailActivity.class); |