feedsactivity: restore headline selection state (2)

This commit is contained in:
Andrew Dolgov 2015-02-13 14:34:54 +03:00
parent 84698a5133
commit 3219334022

View File

@ -776,7 +776,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (!m_selectedArticles.containsId(article.id)) {
m_selectedArticles.add(article);
} else {
m_selectedArticles.remove(article);
m_selectedArticles.remove(m_selectedArticles.findById(article.id));
}
updateTextCheckedState(holder, article);
@ -1064,7 +1064,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (!m_selectedArticles.containsId(article.id))
m_selectedArticles.add(article);
} else {
m_selectedArticles.remove(article);
m_selectedArticles.remove(m_selectedArticles.findById(article.id));
}
m_listener.onArticleListSelectionChange(m_selectedArticles);