mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
#1478 Hide All Shared Stories and Saved Searches folders if empty
This commit is contained in:
parent
a4d531b3b1
commit
aa1c918232
2 changed files with 12 additions and 2 deletions
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent" />
|
|
@ -151,7 +151,10 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
if (isRowGlobalSharedStories(groupPosition)) {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_global_shared_stories, null, false);
|
||||
} else if (isRowAllSharedStories(groupPosition)) {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_all_shared_stories, null, false);
|
||||
if (socialFeedsOrdered.isEmpty()) {
|
||||
return inflater.inflate(R.layout.row_hidden_folder, null, false);
|
||||
}
|
||||
v = inflater.inflate(R.layout.row_all_shared_stories, null, false);
|
||||
if (currentState == StateFilter.BEST || (totalSocialNeutCount == 0)) {
|
||||
v.findViewById(R.id.row_foldersumneu).setVisibility(View.GONE);
|
||||
} else {
|
||||
|
@ -172,7 +175,10 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
} else if (isRowReadStories(groupPosition)) {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_read_stories, null, false);
|
||||
} else if (isRowSavedSearches(groupPosition)) {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_saved_searches, null, false);
|
||||
if (savedSearches.isEmpty()) {
|
||||
return inflater.inflate(R.layout.row_hidden_folder, null, false);
|
||||
}
|
||||
v = inflater.inflate(R.layout.row_saved_searches, null, false);
|
||||
} else if (isRowSavedStories(groupPosition)) {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_saved_stories, null, false);
|
||||
TextView savedSum = ((TextView) v.findViewById(R.id.row_foldersum));
|
||||
|
|
Loading…
Add table
Reference in a new issue