another day, another fix for headlines fragment

This commit is contained in:
Andrew Dolgov 2015-12-02 20:05:05 +03:00
parent 41e9e574eb
commit e0a74a352b
2 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="393"
android:versionName="1.162" >
android:versionCode="394"
android:versionName="1.163" >
<uses-sdk
android:minSdkVersion="16"

View File

@ -965,6 +965,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
holder = (HeadlineViewHolder) v.getTag();
}
//Log.d(TAG, "getView: " + position + ":" + article.title);
holder.position = position;
// block footer clicks to make button/selection clicking easier
@ -1196,9 +1198,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (position == holder.position && bitmap != null) {
holder.flavorImageLoadingBar.setVisibility(View.GONE);
holder.flavorImageView.setTag(article.flavorImageUri);
if (bitmap.getWidth() > FLAVOR_IMG_MIN_SIZE && bitmap.getHeight() > FLAVOR_IMG_MIN_SIZE) {
holder.flavorImageView.setTag(article.flavorImageUri);
holder.flavorImageView.setVisibility(View.VISIBLE);
holder.flavorImageOverflow.setVisibility(View.VISIBLE);