Fix menu item error in the navigation drawer.

This commit is contained in:
Alex Ning 2021-07-17 23:22:02 +08:00
parent c55f1a2c04
commit 9e1f4edf44

View File

@ -439,6 +439,8 @@ public class NavigationDrawerRecyclerViewAdapter extends RecyclerView.Adapter<Re
} else if (collapseAccountSection && collapsePostSection) {
if (position > 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) {