From 5e20d81fecace345e7261f19012f49f2b7cec708 Mon Sep 17 00:00:00 2001 From: dosiecki Date: Tue, 12 Dec 2017 04:22:16 -0800 Subject: [PATCH] fix inapplicable metafolders showing during saved-only mode --- .../src/com/newsblur/database/FolderListAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/android/NewsBlur/src/com/newsblur/database/FolderListAdapter.java b/clients/android/NewsBlur/src/com/newsblur/database/FolderListAdapter.java index 5c7c953ff..371a04ee6 100644 --- a/clients/android/NewsBlur/src/com/newsblur/database/FolderListAdapter.java +++ b/clients/android/NewsBlur/src/com/newsblur/database/FolderListAdapter.java @@ -579,10 +579,10 @@ public class FolderListAdapter extends BaseExpandableListAdapter { folderNeutCounts = new ArrayList(); folderPosCounts = new ArrayList(); // add the always-present (if enabled) special rows/folders that got at the top of the list - if (PrefsUtils.isEnableRowGlobalShared(context)) addSpecialRow(GLOBAL_SHARED_STORIES_GROUP_KEY); - addSpecialRow(ALL_SHARED_STORIES_GROUP_KEY); + if (PrefsUtils.isEnableRowGlobalShared(context) && (currentState != StateFilter.SAVED)) addSpecialRow(GLOBAL_SHARED_STORIES_GROUP_KEY); + if ((currentState != StateFilter.SAVED)) addSpecialRow(ALL_SHARED_STORIES_GROUP_KEY); addSpecialRow(ALL_STORIES_GROUP_KEY); - if (PrefsUtils.isEnableRowInfrequent(context)) addSpecialRow(INFREQUENT_SITE_STORIES_GROUP_KEY); + if (PrefsUtils.isEnableRowInfrequent(context) && (currentState != StateFilter.SAVED)) addSpecialRow(INFREQUENT_SITE_STORIES_GROUP_KEY); // create a sorted list of folder display names List sortedFolderNames = new ArrayList(flatFolders.keySet()); Collections.sort(sortedFolderNames, Folder.FolderNameComparator);