This commit is contained in:
daniel oeh 2012-06-28 17:07:33 +02:00
parent da1bf5a045
commit 4e5916f258
3 changed files with 3 additions and 1 deletions

View File

@ -25,5 +25,6 @@ public class PodcastApp extends Application {
}
}

View File

@ -83,6 +83,7 @@ public class FeedItemlistAdapter extends ArrayAdapter<FeedItem> {
} else {
holder.lenSize.setText(Converter.byteToString(item.getMedia()
.getSize()));
holder.downloaded.setVisibility(View.GONE);
}
if (item.getMedia().isDownloading()) {

View File

@ -435,7 +435,7 @@ public class FeedManager {
public FeedMedia getFeedMedia(long id) {
for (Feed feed : feeds) {
for (FeedItem item : feed.getItems()) {
if (item.getMedia().getId() == id) {
if (item.getMedia() != null && item.getMedia().getId() == id) {
return item.getMedia();
}
}