mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-27 09:01:22 +01:00
Bugfix: FeedImage is now displayed correctly and not deleted anymore
This commit is contained in:
parent
98a15f177c
commit
b85543ff25
@ -2,6 +2,7 @@ package de.podfetcher.activity;
|
||||
|
||||
import java.io.File;
|
||||
import android.net.Uri;
|
||||
import android.graphics.BitmapFactory;
|
||||
import com.actionbarsherlock.app.SherlockActivity;
|
||||
import android.view.View;
|
||||
import android.widget.ListView;
|
||||
@ -64,7 +65,7 @@ public class ItemviewActivity extends SherlockActivity {
|
||||
txtvPublished.setText(item.getPubDate());
|
||||
txtvTitle.setText(item.getTitle());
|
||||
if(item.getFeed().getImage() != null) {
|
||||
imgvImage.setImageURI(Uri.fromFile(new File(item.getFeed().getImage().getFile_url())));
|
||||
imgvImage.setImageBitmap(BitmapFactory.decodeFile(item.getFeed().getImage().getFile_url()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ import android.widget.ArrayAdapter;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import android.graphics.BitmapFactory;
|
||||
|
||||
|
||||
public class FeedlistAdapter extends ArrayAdapter<Feed> {
|
||||
@ -46,7 +47,7 @@ public class FeedlistAdapter extends ArrayAdapter<Feed> {
|
||||
|
||||
holder.title.setText(feed.getTitle());
|
||||
if(feed.getImage() != null) {
|
||||
holder.image.setImageURI(Uri.fromFile(new File(feed.getImage().getFile_url()))); // TODO select default picture when no image downloaded
|
||||
holder.image.setImageBitmap(BitmapFactory.decodeFile(feed.getImage().getFile_url())); // TODO select default picture when no image downloaded
|
||||
}
|
||||
// TODO find new Episodes txtvNewEpisodes.setText(feed)
|
||||
return convertView;
|
||||
|
Loading…
x
Reference in New Issue
Block a user