feed frags: always notify adapter on load, just in case

This commit is contained in:
Andrew Dolgov 2017-06-05 23:37:50 +03:00
parent 5d9afbd53a
commit fc632ae9a9
2 changed files with 3 additions and 4 deletions

View File

@ -118,8 +118,7 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
m_cats.add(0, new FeedCategory(-1, "Special", 0)); m_cats.add(0, new FeedCategory(-1, "Special", 0));
} }
//m_adapter.notifyDataSetChanged(); (done by sortCats) m_adapter.notifyDataSetChanged();
//m_activity.setLoadingStatus(R.string.blank, false);
return; return;
} }

View File

@ -122,7 +122,6 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
feed.unread = catUnread; feed.unread = catUnread;
m_feeds.add(0, feed); m_feeds.add(0, feed);
m_adapter.notifyDataSetChanged();
} }
@ -133,9 +132,10 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
feed.display_title = getString(R.string.feed_all_articles); feed.display_title = getString(R.string.feed_all_articles);
m_feeds.add(0, feed); m_feeds.add(0, feed);
m_adapter.notifyDataSetChanged();
} }
m_adapter.notifyDataSetChanged();
return; return;
} }