feedsactivity: restore headline selection state (2)
This commit is contained in:
parent
84698a5133
commit
3219334022
@ -776,7 +776,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
if (!m_selectedArticles.containsId(article.id)) {
|
if (!m_selectedArticles.containsId(article.id)) {
|
||||||
m_selectedArticles.add(article);
|
m_selectedArticles.add(article);
|
||||||
} else {
|
} else {
|
||||||
m_selectedArticles.remove(article);
|
m_selectedArticles.remove(m_selectedArticles.findById(article.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
updateTextCheckedState(holder, article);
|
updateTextCheckedState(holder, article);
|
||||||
@ -1064,7 +1064,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
if (!m_selectedArticles.containsId(article.id))
|
if (!m_selectedArticles.containsId(article.id))
|
||||||
m_selectedArticles.add(article);
|
m_selectedArticles.add(article);
|
||||||
} else {
|
} else {
|
||||||
m_selectedArticles.remove(article);
|
m_selectedArticles.remove(m_selectedArticles.findById(article.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_listener.onArticleListSelectionChange(m_selectedArticles);
|
m_listener.onArticleListSelectionChange(m_selectedArticles);
|
||||||
|
Loading…
Reference in New Issue
Block a user