mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 12:47:26 +01:00
Fix the first post card not clickable in PostRecyclerView Adapter.
This commit is contained in:
parent
d06f66975e
commit
09efd35b29
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user