fix flavor images appearing in wrong modes
This commit is contained in:
parent
1a3f6684d5
commit
62de61c5a0
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="374"
|
||||
android:versionCode="375"
|
||||
android:versionName="1.147" >
|
||||
|
||||
<uses-sdk
|
||||
|
@ -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())) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user