mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
fix crash on feed list resume in saved mode
This commit is contained in:
parent
b58f32b51a
commit
d80b86a844
1 changed files with 5 additions and 3 deletions
|
@ -198,9 +198,11 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
|
|||
}
|
||||
} else if (isRowSavedStories(groupPosition)) {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_saved_tag, parent, false);
|
||||
StarredCount sc = starredCountsByTag.get(childPosition);
|
||||
((TextView) v.findViewById(R.id.row_tag_name)).setText(sc.tag);
|
||||
((TextView) v.findViewById(R.id.row_saved_tag_sum)).setText(Integer.toString(checkNegativeUnreads(sc.count)));
|
||||
if (starredCountsByTag.size() > childPosition) {
|
||||
StarredCount sc = starredCountsByTag.get(childPosition);
|
||||
((TextView) v.findViewById(R.id.row_tag_name)).setText(sc.tag);
|
||||
((TextView) v.findViewById(R.id.row_saved_tag_sum)).setText(Integer.toString(checkNegativeUnreads(sc.count)));
|
||||
}
|
||||
} else {
|
||||
if (v == null) v = inflater.inflate(R.layout.row_feed, parent, false);
|
||||
Feed f = activeFolderChildren.get(convertGroupPositionToActiveFolderIndex(groupPosition)).get(childPosition);
|
||||
|
|
Loading…
Add table
Reference in a new issue