diff options
author | Andrew Dolgov <[email protected]> | 2015-09-06 16:31:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-09-06 16:31:36 +0300 |
commit | 62de61c5a0cbe3130ebce0ed81bce81928e9be8b (patch) | |
tree | 1f01aa9b458fc384595a961633d6cb3dafa6451a /org.fox.ttrss/src/main/java | |
parent | 1a3f6684d59736684c7f8ebbf2ec1c46f0c4ddff (diff) |
fix flavor images appearing in wrong modes
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index a7099ee3..1355cd2f 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -794,7 +794,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, //holder.textChecked.setVisibility(View.GONE); - if (article.flavorImage == null) { + if (!showFlavorImage || article.flavorImage == null) { holder.textImage.setImageDrawable(textDrawable); holder.textImage.setTag(null); } else { @@ -918,14 +918,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.position = position; - String articleContent = article.content != null ? article.content : ""; - - String articleContentReduced = articleContent.length() > CommonActivity.EXCERPT_MAX_QUERY_LENGTH ? - articleContent.substring(0, CommonActivity.EXCERPT_MAX_QUERY_LENGTH) : articleContent; - - if (article.articleDoc == null) - article.articleDoc = Jsoup.parse(articleContentReduced); - // block footer clicks to make button/selection clicking easier if (holder.headlineFooter != null) { holder.headlineFooter.setOnClickListener(new OnClickListener() { @@ -1108,7 +1100,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, } }); - if (article.flavorImageUri != null && holder.flavorImageView != null) { + if (showFlavorImage && article.flavorImageUri != null && holder.flavorImageView != null) { if (!article.flavorImageUri.equals(holder.flavorImageView.getTag())) { |