From 9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 17 Jul 2021 23:22:02 +0800 Subject: Fix menu item error in the navigation drawer. --- .../infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java/ml/docilealligator') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java index 664f2689..bf9dea5b 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java @@ -439,6 +439,8 @@ public class NavigationDrawerRecyclerViewAdapter extends RecyclerView.Adapter REDDIT_SECTION_ITEMS + 2) { pseudoPosition += ACCOUNT_SECTION_ITEMS + POST_SECTION_ITEMS; + } else { + pseudoPosition += ACCOUNT_SECTION_ITEMS; } } else if (collapseRedditSection && collapsePostSection) { if (position > ACCOUNT_SECTION_ITEMS + 1) { -- cgit v1.2.3