mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Remove magic number.
This commit is contained in:
parent
05d8b4c9b6
commit
f14f84d506
1 changed files with 2 additions and 1 deletions
|
@ -258,7 +258,8 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
// in addition to the real folders returned by the /reader/feeds API, there are virtual folders
|
||||
// for global shared stories, social feeds and saved stories
|
||||
if (activeFolderNames == null) return 0;
|
||||
return (activeFolderNames.size() + 4);
|
||||
// two types of group (folder and All Stories are represented as folders, and don't count, so -2)
|
||||
return (activeFolderNames.size() + (GroupType.values().length - 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue