From 57fd9edaff2beae6666920d4d17500908d655540 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 15 Mar 2021 00:18:25 +0800 Subject: New options: hide favorite subreddits and subscribed subreddits in the navigation drawer. --- .../adapters/NavigationDrawerRecyclerViewAdapter.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/src/main/java') 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 9a51e181..1ecd8b25 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/NavigationDrawerRecyclerViewAdapter.java @@ -126,7 +126,7 @@ public class NavigationDrawerRecyclerViewAdapter extends RecyclerView.Adapter CURRENT_MENU_ITEMS - (collapseAccountSection ? ACCOUNT_SECTION_ITEMS : 0) - (collapsePostSection ? POST_SECTION_ITEMS : 0) - (collapsePreferencesSection ? PREFERENCES_SECTION_ITEMS : 0)) { - if (!favoriteSubscribedSubreddits.isEmpty() && !collapseFavoriteSubredditsSection && position <= CURRENT_MENU_ITEMS + if (!favoriteSubscribedSubreddits.isEmpty() && !hideFavoriteSubredditsSection && + !collapseFavoriteSubredditsSection && position <= CURRENT_MENU_ITEMS - (collapseAccountSection ? ACCOUNT_SECTION_ITEMS : 0) - (collapsePostSection ? POST_SECTION_ITEMS : 0) - (collapsePreferencesSection ? PREFERENCES_SECTION_ITEMS : 0) @@ -314,7 +315,7 @@ public class NavigationDrawerRecyclerViewAdapter extends RecyclerView.Adapter 2022-08-26Minor bugs fixed.Docile-Alligator1-1/+5 2022-08-21Show an indicator for the current sort type.Docile-Alligator13-39/+145 2022-08-21Show an indicator for the current sort type in SortTypeBottomSheetFragment.Docile-Alligator9-27/+66 2022-08-16Version 5.3.0-beta1.Docile-Alligator2-4/+2 2022-08-16Receive events in HistoryPostFragment.Docile-Alligator1-6/+399 2022-08-15Update Redgifs API.Docile-Alligator4-13/+35 2022-08-15Show urls in ShareLinkBottomSheetFragment.Docile-Alligator2-2/+40 2022-08-15Apply custom theme to settings page.Docile-Alligator77-239/+518 2022-08-14Apply custom theme to the header of the navigation drawer.Docile-Alligator4-16/+14 2022-08-14Heading markdown fix (#908)Sergei Kozelko11-15/+165 2022-08-14Fix post content is not parsed in other types of posts.Docile-Alligator8-96/+131 2022-08-13Fix saved comments not shown when clicking Saved option in the bottom navigat...Docile-Alligator4-8/+4 2022-08-13Fix caption shown under the navbar in ViewRedditGalleryImageOrGifFragment.Docile-Alligator4-23/+37 2022-08-12Manage theme insertion callbacks behaviour (#892)Andrei Shpakovskiy1-25/+25 2022-08-12fixed renamed labelWladimir Kirianov1-1/+1 2022-08-12fixed typosWladimir Kirianov1-2/+2 2022-08-05Extra small font sizeDocile-Alligator7-0/+36 2022-08-05Set default position of cursor at the end of query (#842)Andrei Shpakovskiy1-0/+1 2022-08-05Move mAccessToken and mAccountName initialization upper (#841)Anatolii Afanasev1-3/+3 2022-08-05Apply FAB theme in CustomThemeListingActivity (#857)Sergei Kozelko1-0/+1 2022-08-05Fix loading previews after quick scroll (#861)Sergei Kozelko2-1/+8 2022-08-04Clear user flair.Docile-Alligator4-25/+55 2022-07-29Fixed linksWladimir Kirianov1-1/+1 2022-07-28Minor UI tweaks in ViewSubredditDetailActivity, ViewUserDetailActivity and Cu...Docile-Alligator12-27/+46 2022-07-28Update config.ymlWladimir Kirianov1-1/+1 2022-07-28Update translation contributors.Docile-Alligator1-19/+19