set flavor image height to wrap_content when loading finished

bump version
This commit is contained in:
Andrew Dolgov 2017-06-05 20:03:55 +03:00
parent 8d3776ccc0
commit 221d111e76
2 changed files with 6 additions and 2 deletions

View File

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.fox.ttrss"
android:versionCode="439"
android:versionName="1.205">
android:versionCode="440"
android:versionName="1.206">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

View File

@ -1228,6 +1228,10 @@ public class HeadlinesFragment extends Fragment {
boolean forceDown = article.flavorImage != null && "video".equals(article.flavorImage.tagName().toLowerCase());
RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) holder.flavorImageView.getLayoutParams();
lp.height = RelativeLayout.LayoutParams.WRAP_CONTENT;
holder.flavorImageView.setLayoutParams(lp);
maybeRepositionFlavorImage(holder.flavorImageView, resource, holder, forceDown);
adjustVideoKindView(holder, article);