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

View File

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