headlines: do not update entire list when clicking one of face buttons, do not update everything onresume
This commit is contained in:
parent
213c21190b
commit
da7ef18ab6
@ -540,7 +540,7 @@ public class HeadlinesFragment extends Fragment {
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
if (m_adapter != null) m_adapter.notifyDataSetChanged();
|
||||
//if (m_adapter != null) m_adapter.notifyDataSetChanged();
|
||||
|
||||
if (m_activeArticle != null) {
|
||||
setActiveArticle(m_activeArticle);
|
||||
@ -908,7 +908,7 @@ public class HeadlinesFragment extends Fragment {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(final ArticleViewHolder holder, final int position) {
|
||||
public void onBindViewHolder(final ArticleViewHolder holder, int position) {
|
||||
holder.article = items.get(position);
|
||||
|
||||
int headlineFontSize = Integer.parseInt(m_prefs.getString("headlines_font_size_sp", "13"));
|
||||
@ -957,7 +957,7 @@ public class HeadlinesFragment extends Fragment {
|
||||
|
||||
article.selected = !article.selected;
|
||||
|
||||
updateTextCheckedState(holder, article, position);
|
||||
updateTextCheckedState(holder, article, m_list.getChildPosition(holder.view));
|
||||
|
||||
m_listener.onArticleListSelectionChange(getSelectedArticles());
|
||||
|
||||
@ -1018,7 +1018,8 @@ public class HeadlinesFragment extends Fragment {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
article.marked = !article.marked;
|
||||
m_adapter.notifyDataSetChanged();
|
||||
|
||||
m_adapter.notifyItemChanged(m_list.getChildPosition(holder.view));
|
||||
|
||||
m_activity.saveArticleMarked(article);
|
||||
}
|
||||
@ -1042,7 +1043,8 @@ public class HeadlinesFragment extends Fragment {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
article.published = !article.published;
|
||||
m_adapter.notifyDataSetChanged();
|
||||
//m_adapter.notifyDataSetChanged();
|
||||
m_adapter.notifyItemChanged(m_list.getChildPosition(holder.view));
|
||||
|
||||
m_activity.saveArticlePublished(article);
|
||||
}
|
||||
@ -1167,7 +1169,7 @@ public class HeadlinesFragment extends Fragment {
|
||||
|
||||
holder.flavorImageView.setVisibility(View.VISIBLE);
|
||||
|
||||
if (!article.flavorImageUri.equals(holder.flavorImageOverflow.getTag())) {
|
||||
/*if (!article.flavorImageUri.equals(holder.flavorImageOverflow.getTag())) {*/
|
||||
//holder.flavorImageLoadingBar.setVisibility(View.VISIBLE);
|
||||
//holder.flavorImageLoadingBar.setIndeterminate(true);
|
||||
|
||||
@ -1224,7 +1226,7 @@ public class HeadlinesFragment extends Fragment {
|
||||
}
|
||||
})
|
||||
.into(holder.flavorProgressTarget);
|
||||
} else {
|
||||
/*} else {
|
||||
holder.flavorImageOverflow.setVisibility(View.VISIBLE);
|
||||
|
||||
adjustVideoKindView(holder, article);
|
||||
@ -1238,7 +1240,7 @@ public class HeadlinesFragment extends Fragment {
|
||||
} else {
|
||||
holder.headlineHeader.setBackgroundDrawable(null);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
if (m_prefs.getBoolean("inline_video_player", false) && article.flavorImage != null &&
|
||||
|
Loading…
Reference in New Issue
Block a user