aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-17 15:22:02 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-17 15:22:02 +0000
commit9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f (patch)
tree6fbd1a0ab0c02a05787a965ee222f03866d05696 /app/src/main/java/ml
parentc55f1a2c04b4138b0d5250fcb1268014223fc669 (diff)
downloadinfinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.tar
infinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.tar.gz
infinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.tar.bz2
infinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.tar.lz
infinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.tar.xz
infinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.tar.zst
infinity-for-reddit-9e1f4edf4477bd5d8ddf7dca6f6b1ef93f87724f.zip
Fix menu item error in the navigation drawer.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java2
1 files changed, 2 insertions, 0 deletions
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<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) {