no need to check if loading footer present on refresh because we remove all of them anyway

This commit is contained in:
Andrew Dolgov 2017-06-04 18:59:33 +03:00
parent 27118b9583
commit 46d283980f
1 changed files with 1 additions and 4 deletions

View File

@ -587,10 +587,7 @@ public class HeadlinesFragment extends Fragment {
m_articles.clear();
m_adapter.notifyDataSetChanged();
} else {
// TODO: should check footer presence by id?
if (m_adapter.getFooterCount() == 0) {
m_adapter.addFooterView(createListFooter(R.layout.headlines_row_loadmore));
}
m_adapter.addFooterView(createListFooter(R.layout.headlines_row_loadmore));
}
final String sessionId = m_activity.getSessionId();